Browsed by
Tag: helper

Laravel: Billplz Helper

Laravel: Billplz Helper

Billplz is a simple cash solution to send bills and collect payments in real-time. There’s already a package available for PHP. We going to create a wrapper and helper for Laravel application for the Billplz. First, create a config file for Billplz – config/billplz.php Then create a utility class in app/Utilities directory: Lastly, create a helper in app/Support directory named helpers.php, and add the following command. Now you’re done setting up your Billplz helper. You just need to setup BILLPLZ_API_KEY…

Read More Read More

Laravel: MoneyPHP Wrapper and Helper

Laravel: MoneyPHP Wrapper and Helper

I’ve created a simple MoneyPHP wrapper to simplify my day to day work dealing with MoneyPHP. and a currency configuration – where you can specify the label for display use, and swift_code for MoneyPHP usage: And I’ve create a helper in my app/Support/helpers.php, to simplify the usage of the MoneyPHP Wrapper. A simple usage as following: money()->toHuman(10000) – use it for display it to end user. money()->toMachine(10000) – use it for create the right format before use in database or…

Read More Read More