Download the PHP package rootdata21/hati without Composer
On this page you can find all versions of the php package rootdata21/hati. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package hati
Hati - A Speedy PHP Library
.'``'.__
/ \ `'"-,
.-''''--...__..-/ . | \
.' ; :' '. a |
/ | :. \ =\
; \':. / ,-.__;.-;`
Welcome to the Hati wiki! Hati is a powerful PHP library written in PHP 8 which has various library functions and classes to make API or application development in PHP effortless. This library has great support for crafting:-
- APIs development support
- Form data & request validations
- Basic Template engine
- Email functions [using PHPMailer]
- Easy file uploading
- Multiple database operations
- Simplistic Date-Timing functions
- Number crunching utility functions etc.
- Zip files creation
Hati utilizes composer autoload. You can use apache's dot htaccess file to prepend the Hati init file which will require 'vendor/autoload.php' behind the scene to resolve the loader dependencies. Many aspect of Hati can be configured by using the configuration files found on project root hati/hati.json & hati/db.json.
Hati comes with a few tools which are found on the project root's hati/tool folder. These tools are used to help working with multiple database, API documentation etc.
Library functions, class names are inspired by Bengali language. Many common words from Bengali language such Kuli, Biscut, Shomoy are found within this library.
Install
Install the latest version using:
Or add to your composer.json file as a requirement:
Setup
- Hati can only be used in PHP 8 or above. In order to set up the Hati, you can use the htaccess file provided with the library to prepend the "hati/init.php" file or manually require it using require function.
- Adjust the "hati/hati.json" file to configure the environment.
Demo
Below an API is written using Fluent class to perform database query where sql is prepared and behind the scene and the result is fetched using datum method. With traditional approach such task would take up to 10 lines. Hati really shrinks down the line of code you have to write over and over again. Finally, it return the output as JSON to requester.
Output
Hitting the API at: https://example.com/api/welcome/get
Donation/Support
If you find this project helpful then why don't you buy the developer a cup of tea? Any amount of donation is appreciated. Please follow the link to donate by using PayPal. PayPal Payment
License
This project is maintained under MIT license.
All versions of hati with dependencies
phpmailer/phpmailer Version ^6.5
rootdata21/hati-installer Version v4.0.0
ext-pdo Version *
ext-zip Version *