Download the PHP package hakuryo/slim-api-template without Composer
On this page you can find all versions of the php package hakuryo/slim-api-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hakuryo/slim-api-template
More information about hakuryo/slim-api-template
Files in hakuryo/slim-api-template
Package slim-api-template
Short Description A SLIM API template with firebase php jwt
License MIT
Informations about the package slim-api-template
SLIM API TEMPLATE
This project is a SLIM API template bundled with the following composer package :
- php: >=7.4
- firebase/php-jwt: ^6.3
- hakuryo/database-client: ^1.3
- monolog/monolog: ^3.3.1
- slim/psr7: ^1.5
- slim/slim: ^4.9
Requirement
Mandatory
- PHP 7.4+
- PHP module :
- php-json
- php-pdo
- php-mysql
Optional
- PHP module :
- oci8 How to install OCI8
- pdo_oci How to install PDO_OCI
Install
composer create-project hakuryo/slim-api-template [local_path_of_your_project]
Configuration
This template is initialized by the Config class. The class load an INI file to configure the application.
:warning:
The default location is__DIR__ . "/config/config.ini"
. Please take note that's NOT A GOOD location for production. You SHOULD place the config file outside your web root.If you can not place the INI file outside your web root please consider using ACL like htaccess to prevent the reading of the file.
Below a sample config file.
All versions of slim-api-template with dependencies
firebase/php-jwt Version ^6.3
monolog/monolog Version ^3.3.1
hakuryo/database-client Version ^1.3
slim/psr7 Version ^1.5
ext-json Version *
php Version >=7.4