GithubHelp home page GithubHelp logo

fsfw_helper's Introduction

Fsfw Helper V 1.0.0

Fsfw Helper adalah sebuah helper untuk framework codeigniter 3.*, berisi kumpulan fungsi yang sehari hari digunakan programmer khususnya programmer Indonesia.

Kebutuhan

Helper ini sudah di uji coba untuk Framework Codeigniter 3.*.

Instalasi

Penggunakan helper ini cukup mudah

  1. Salin file fsfw.php ke dalam folder application/helper/
  2. Muat helper ini dengan manambahkan di file application/config/autoload.php dengan menambahkan $autoload['helper'] = array('fsfw');

Fungsi-fungsi

Berikut adalah fungsi-fungsi yang dapat digunakan

  • isUrlExist (string url) Untuk memastikan apakah url ada atau tidak.
  • dateSys2dateId(string yyyy-mm-dd) Merubah tanggal dari format sistem (yyyy-mm-dd) menjadi format Indonesia (dd-mm-yyyy)
  • dateId2dateSys(string yyyy-mm-dd) Merubah tanggal dari format Indonesia (dd-mm-yyyy) menjadi format sistem (yyyy-mm-dd)
  • dateDifference(string yyyy-mm-dd, string yyyy-mm-dd) Mencari selisih antara dua tanggal
  • monthId(int m) Merubah angka bulan menjadi nama bulan dalam bahasa Indonesia.
  • listMonthId() Berisi array daftar nama bulan dalam bahasa Indonesia.
  • dateId(string yyyy-mm-dd) Merubah tanggal sistem (yyyy-mm-dd) menjadi tanggal lengkap dalam bahasa Indonesia. Contoh : 2019-12-12 -> 12 Desember 2019
  • timeElapsed(timestamp) Untuk mengetahui waktu yang sudah terlewat dari waktu yang ditentukan ke waktu sekarang. Hasil : 2 detik lalu, 3 jam lalu, 1 bulan lalu.
  • wordLimiter(string str, int limit) Memotong string dengan batas yang ditentukan.
  • numSys2numId(float x) Merubah format angka dari format sistem ke format Indonesia.
  • numId2numSys(string x) Merubah format angka dari format Indonesia ke format sistem.

fsfw_helper's People

Contributors

chrisnabayuaji avatar

Stargazers

Fikri20 avatar akbarwibawa avatar Acmad Fadli Aditama avatar

Watchers

akbarwibawa avatar  avatar Fikri20 avatar

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.