gemarkode / pino-library
This package is abandoned and no longer maintained.
The author suggests using the rizkytegar/sapu-lib package instead.
none
1.0
2022-10-12 13:46 UTC
Requires
- php: ^7.4|^8.0
README
this repository will be developed directly by @rizkytegar.
Installation
Install With Composer, make sure you install the latest version
composer require gemarkode/pino-library
Usage
Please Include Pino Library Core System in your controller file
<?php // include autoload vendor require_once __DIR__ . '/vendor/autoload.php'; // include Pino Library use pino\Library\Pino;
See Usage examples in the test folder folder
Pino Validation
Integer
Example Input Data, You can change the value of $data
by request POST or GET
$data = '!@#$%^&*()_+{}|":<>?,./;\][=-just test integer!#%^&*()123';
Example output, Data will be converted into a integer.
return Pino::integer($data); // Output from $data 123
See Integer Example in /test/ExampleInteger.php
String
Example Input Data, You can change the value of $data by request POST or GET.
$data = '!@#$%^&*()_+{}|":<>?,./;\][=-just test string!#%^&*()123';
Example output, Data will be converted into a string.
return Pino::string($data); // Output from $data : just test string123
See String Example in /test/ExampleString.php
Pino Database Connection
Coming soon
Pino Query Pattern
Coming Soon
Cross Site Request Forgery (CSRF)
Coming Soon
PHP Session Security
Coming Soon
Contributing
Please Read CONTRIBUTING.md Before Contributing.