Download the PHP package hoangphi/hwa-tools without Composer
On this page you can find all versions of the php package hoangphi/hwa-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hoangphi/hwa-tools
More information about hoangphi/hwa-tools
Files in hoangphi/hwa-tools
Package hwa-tools
Short Description A package about helper function and meta tools. Development by Phi Hoang
License MIT
Homepage https://github.com/hoangphidev/hwa-tools
Informations about the package hwa-tools
About
hwa-tools is a helper package. It helps us to build and develop faster with pre-built functions. This saves a lot of time on future projects.
We share this package to give programmers an extra useful library. We hope people use this package not for commercialization or profit of any kind.
And finally, hope to receive more contributions and shares from all of you.
Thank you very much 🧡
Install
-
You can install the package via composer:
-
Optional: The service provider will automatically get registered. Or you may manually add the service provider in your
config/app.php
file: - You can customize the
config/hwa_tools.php
config file . If you customize fileconfig/hwa_tools.php
. You need to run the command below to clear cache and update the changes.
Default config file contents
You can view the default config file contents at:
https://github.com/hoangphidev/hwa-tools/blob/master/config/hwa_tools.php
Usage
Helpers
Since this is a package with helper functions, after installing the package into the project, people can call the helper functions everywhere in the project.
Here are some helper functions we've built:
-
Commons
-
Datetime
-
Images
-
Ip info
- Response API
MetaTools
This tool helps you to easily manage the extended data fields of certain objects.
- Create Meta Class with command.
Example: We need CustomerMeta. This tools help us make model file and migration file.
The above command we have added -m to create the migration file.
-
Add allow type to
config/hwa_tools.php
-
You need to run the command below to clear cache and update the changes.
- Run command to migrate the meta migration file to database
After completing the above configuration steps you can use the methods available in the meta model in the classes you want.
Beside the functions and methods we have built, people can also build their own by inheriting our classes.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover a security vulnerability within hwa-tools, please send an e-mail to Phi Hoang via [email protected]. All security vulnerabilities will be promptly addressed.
Credits
- Phi Hoang
- Hwavina Inc.
- All Contributors
License
The Laravel framework is open-sourced software licensed under the MIT license.
All versions of hwa-tools with dependencies
illuminate/support Version ^5.8|^6|^7|^8
ext-curl Version *
ext-json Version *