- Aura Router
- DiDOM Web Scraping
- CssToInlineStyles
- Amp PHP MySQL
- Reflection PHP
- KNP-Menu
- PHP-CodeSniffer
- Carbon
- Money
- Markup
- Agent
- Blade
- Assertion
- Fractal
- Notification
Installation of the next packages requires Composer
This package helps you to create routes as you're in Laravel.
Run the next command to install the Aura
package
composer require aura/router
Run the next command to implement the PSR-7
composer require zendframework/zend-diactoros
Run the next command, then copy & past the code in Aura-Router/index.php to get /users/{id}
route
php -S localhost:8000 -t app/Aura-Router
-t
argument refers to the PATH ofindex.php
.
This package allows you to extract information from a specific
page/link
.
Run the next command to install the DiDOM
package, then copy & past the code in DiDOM-Web-Scraping/index.php
composer require imangazaliev/didom
This package allows to merge separated HTML and CSS files into one file, and this will be very useful when you decide to send an email.
Run the next command to install the CssToInlineStyles
package, then copy & past the code in CssToInlineStyles/index.php
composer require tijsverkoyen/css-to-inline-styles
We all know that PHP work synchronous execution, So if you send a query database then you should wait until the database server responds to you in a blocking manner, So instead of sitting do nothing you can send the next query database or do an HTTP call to an API.
Run the next command to install the AmPHP MySQL
package, then copy & past the code in AmPHP-MySQL/index.php
composer require amphp/mysql
Reflection API allows you to know more information about Classes, Interfaces, Functions, and Extensions, there is no installation needed to use these functions; they are part of the PHP core.
Then copy & past the code in Reflection/index.php
This package allows you to create a list HTML tag without writing any HTML code.
Run the next command to install the KNP-Menu
package, then copy & past the code in KNP-Menu/index.php
composer require knplabs/knp-menu
This package allows you to detect violations of a defined coding standard in PHP, HTML, CSS files using two files, the first one is
phpcs
and the second one isphpcbf
which used to automatically correct code standard violations.
Run the next command to install the PHP-CodeSniffer
package
composer require squizlabs/php_codesniffer
Run the next command, to show the ERRORS
and WARNING
in your code like phpcs.png
./vendor/bin/phpcs folderPath/filePath.php
Run the next command to automatically correct code standard violations like phpcbf.png
./vendor/bin/phpcbf folderPath/filePath.php
This package allows you to deal with date and time in an easy manner.
Run the next command to install the Carbon
package, then copy & past the code in Carbon/index.php
composer require nesbot/carbon
This package allows you to deal with monetary calculations carefully.
Run the next command to install the Mony
package, then copy & past the code in Money/index.php
composer require brick/money
This package allows you to deal with HTML in cinch manner.
Run the next command to install the Markup
package, then copy & past the code in Markup/index.php
composer require rusev/parsedown
This package allows you to get more info about the device and the browser that runs the application.
Run the next command to install the Agent
package, then copy & past the code in Agent/index.php
composer require jenssegers/agent
This package allows you to deal with
.blade.php
extension as if you are in Laravel.
Run the next command to install the Blade
package, then copy & past the code in Blade/index.php
composer require jenssegers/blade
This package allows you to validate the form inputs in an easy manner.
Run the next command to install the Assertion
package, then copy & past the code in Assertion/index.php
composer require beberlei/assert
This package provides a presentation and transformation layer for complex data output.
Run the next command to install the Fractal
package, then copy & past the code in Fractal/index.php
composer require league/fractal
This package allows displaying desktop notifications.
Run the next command to install the Notification
package, then copy & past the code in Notification/index.php
composer require jolicode/jolinotif
FINALLY, run the next command and enjoy 😋
php -S localhost:8000