- Aura Router
- DiDOM Web Scraping
- CssToInlineStyles
- Amp PHP MySQL
- Reflection PHP
- KNP-Menu
- PHP-CodeSniffer
- Carbon
- Money
- Markup
- Agent
- Blade
- Assertion
- Fractal
- Notification
Note
You can add an awesome package, but please, go on the same approach I follow.
Installation of the next packages requires Composer.
This package helps you to create routes as you're in Laravel Framework.
Install the Aura package:
composer require aura/routerIn addition, implement the PSR-7:
composer require zendframework/zend-diactorosFinally, copy & paste the code in the Aura-Router/index.php to get the /users/{id} route:
php -S localhost:8000 -t app/Aura-RouterTip
-t argument refers to the index.php path.
This package lets you extract information from a specific
page/link.
Install the DiDOM package, then copy & paste the code in the DiDOM-Web-Scraping/index.php
composer require imangazaliev/didomThis package allows you to merge separate
HTMLandCSSfiles into one file (This is useful when you decide to send an email).
Install the CssToInlineStyles package, then copy & paste the code in CssToInlineStyles/index.php:
composer require tijsverkoyen/css-to-inline-stylesWe all know that PHP works synchronous execution so, if you send a query database then you should wait until the database server responds to you in a blocking manner, instead of sitting do nothing you can send the next query database or do an HTTP call to an API.
Install the AmPHP MySQL package, then copy & paste the code in the AmPHP-MySQL/index.php:
composer require amphp/mysqlReflection API allows you to know more information about
Classes,Interfaces,Functions, andExtensions(There is no installation needed to use these functions, they are part of the PHP core).
Copy & paste the code in the Reflection/index.php
This package allows you to create a list HTML tag without writing any HTML code.
Install the KNP-Menu package, then copy & paste the code in the KNP-Menu/index.php:
composer require knplabs/knp-menuThis package allows you to detect violations of a defined coding standard in the
PHP,HTML, andCSSfiles by two files which arephpcsandphpcbf.
Install the PHP-CodeSniffer package:
composer require squizlabs/php_codesnifferRun the next command to show the ERRORS and WARNING in your code (phpcs.png):
./vendor/bin/phpcs folderPath/filePath.phpRun the next command to automatically correct code standard violations (phpcbf.png):
./vendor/bin/phpcbf folderPath/filePath.phpThis package allows you to deal with dates and times easily.
Install the Carbon package, then copy & paste the code in the Carbon/index.php:
composer require nesbot/carbonThis package allows you to deal with monetary calculations carefully.
Install the Mony package, then copy & paste the code in the Money/index.php:
composer require brick/moneyThis package allows you to deal with HTML in a cinch manner.
Install the Markup package, then copy & paste the code in the Markup/index.php:
composer require rusev/parsedownThis package gives you more information about the device and the browser that runs the application.
Install the Agent package, then copy & paste the code in the Agent/index.php:
composer require jenssegers/agentThis package lets you deal with the
.blade.phpextension as if in Laravel Framework.
Install the Blade package, then copy & paste the code in the Blade/index.php:
composer require jenssegers/bladeThis package allows you to validate the form inputs easily.
Install the Assertion package, then copy & paste the code in the Assertion/index.php:
composer require beberlei/assertThis package provides a presentation and transformation layer for complex data output.
Install the Fractal package, then copy & paste the code in the Fractal/index.php:
composer require league/fractalThis package allows displaying desktop notifications.
Install the Notification package, then copy & paste the code in the Notification/index.php:
composer require jolicode/jolinotif