Why Resty ? Cause it's make restful API. One simplest way to create, handle and manage your restful API. Lighter, less code for more performance. Resty is for you, Resty is made for you.
- Php >= 7.2
- Curl
Easily from Packagist Not yet
Another way You can install it by cloning from github. Use composer to install dependancies.
$ git clone https://github.com/ludndev/resty-php-framework.git
$ cd resty-php-framework/
$ composer install
+-- controllers
| +-- controller.php
| +-- products
| +-- create.php
+-- providers
| +-- DBController.php
| +-- Header.php
| +-- MOError.php
| +-- Paginate.php
| +-- Response.php
| +-- Rest.php
| +-- Router.php
| +-- Shared.php
+-- routes
| +-- default.php
| +-- products.html
+-- tests
| +-- client.php
| +-- seeds.php
| +-- test-database.sql
| +-- test.php
| +-- members.yml
+-- .env
+-- .env.example
+-- api.php
+-- composer.json
+-- README.md
Simply edit your .env
file on Resty root app. If there is no .env file, create it from .env.example
.
# Resty Common settings
APP_NAME = "Resty API"
APP_VERSION = "1.0"
APP_URL = "http://localhost:8000"
APP_EMAIL = "webmaster@email.tld"
# Database settings
DB_DRIVER = "mysql"
DB_HOST = "database_host"
DB_NAME = "database_name"
DB_USER = "database_username"
DB_PASS = "database_password"
-
You can add controllers manually to routes folder on
/resty/controllers/
. -
Or by using the Command Line Tools
$ php rshell command
-
You can add routes manually to routes folder on
/resty/routes/
. -
Or by using the Command Line Tools
$ php rshell command
Cause we love code, there is some snippets for you. (VSCode Snippet)[http://link.to] (Sublime Text)[http://link.to]
You can populate Resty with default data. Here is how to do.
$ php rshell command
Reads docs. Tools used to :
Resty is released under the MIT Licence. See the bundled LICENSE file for details.