Giter VIP home page Giter VIP logo

landaphp's Introduction

Landa PHP

Generate gambar menjadi 3 ukuran (700x700, 350x350, 150x150)

createImg(PATHFILE, NAMAFILE, ID_UNIK, KUALITAS)

  • PATHFILE = Path menuju gambar yang akan digenerate
  • NAMAFILE = Nama gambar yang akan digenerate
  • ID_UNIK = Isi dengan angka unik atau ID gambar
  • KUALITAS = Kualitas gambar yang baru (Min 20, Max 100)

Menampilkan terbilang

terbilang(ANGKA)

Contoh :

terbilang(1200)

return : seribu dua ratus

Menampilkan format rupiah

rp(ANGKA, PREFIX, DECIMAL)

  • ANGKA = Angka yang akan dirubah ke format rupiah
  • PREFIX = Berisi true/false untuk menampilkan simbol Rp. sebelum angka
  • DECIMAL = Desimal yang dipakai, nilai default 0

Contoh :

rp(15000, true, 2)

return : Rp. 1.500,00

Menampilkan nama bulan berdasarkan urutan

namaBulan(URUTAN)

  • URUTAN = urutan bulan (1-12)

Contoh :

namaBulan(2)

return : Februari

Konvert base64 ke file

base64ToFile(BASE64, PATH, CUSTOM_NAME)

  • BASE64 = kode BASE64
  • PATH = PATH untuk menyimpan
  • CUSTOM_NAME = membuat nama file baru, parameter ini bisa tidak dipakai

Format untuk parameter BASE64 : array( base64 => '', filename => '', )

landaphp's People

Contributors

wahyuagung26 avatar

Watchers

James Cloos avatar  avatar

Forkers

yusron-alamsyah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.