PHP code example of sageit / phalcon-rest
1. Go to this page and download the library: Download sageit/phalcon-rest library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sageit / phalcon-rest example snippets
foreach ($config->services as $service => $class) {
$di->register(new $class);
}
$di->register(new \Phalcon\Di\Service\Common\Tools());
$di->register(new \Phalcon\Di\Service\Request\Json());
$di->register(new \Phalcon\Di\Service\Response\Json());
$di->register(new \Phalcon\Di\Service\Encryption\Security\JWT\Jwt());