A perfect tool for creating Restful web service in PHP
Project description
Rest CLI

If you love ?
- Beautiful restful web service with standard architecture
- The fastest way to get things done with less human coding
- Easy way to synchronize from components to documentation
- Well tested structure with explicit request & response
- Powered by an industrial framework with outstanding performance
Then this powerful tool is the right choice for you.
Prerequisite
- Docker
- Python 2.7 with pip
- PHP 7.2 with composer
Installation
$ pip install rest-cli
Road map
- Create web service base on a lightweight skeleton
- Database schema migration
- Reverse schema to model - repository - service and dependency injectors
- Support built-in query annotations
- Compile api routes and generate controller with integration tests
- Serve and test application
- Generate swagger documentation base on api routes (in-progress)
- Support response header & type casting for complex Request
- Support Service - Repository symbolic link to comply top down architecture
- Export service interfaces for inter-communication
- Support RPC exception via response verification
Usages
- Create web service application
- --quite : Quite mode without asking anything about configuration
- --force : Force creating application without complaining about existing project
- --mysql : Start a mysql container with default information
$ rest create <awesome-service>
- Change directory to service and write some migrations at
src/Shared/Migration
$ rest migrate
- Synchronize model - repository - service - controller - test cases
- To create some awesome apis, update your routes at
config/api/*.json
$ rest sync
- View route list
- To see which routes are configured and manage apis
$ rest route
- Serve your application to test in browser
$ rest serve
- Test your application with PHPUnit
$ rest test
- Check current version
$ rest version
- Update new version of rest-cli ?
$ rest upgrade
- Need more help ?
$ rest --help
API Documentation
After rest sync you can serve your service with rest serve
Swagger Documentation should be ready at http://localhost:8000/docs
License
Rest CLI and related projects are licensed under the MIT
Thanks for the sponsor from GO1 Company
~ Happy Coding ~
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rest-cli-0.0.3.tar.gz.
File metadata
- Download URL: rest-cli-0.0.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae38b07b06142e5a0e64fc052d0dee178628ea44cc4b3b8b33692b005e7a5bd
|
|
| MD5 |
bc8f8e186276444c5438c09b7f78b513
|
|
| BLAKE2b-256 |
a76814b4ce738fe9c9d425ae9e56d797210805ef0cd00ec27706106e0fbd7f77
|
File details
Details for the file rest_cli-0.0.3-py2.7.egg.
File metadata
- Download URL: rest_cli-0.0.3-py2.7.egg
- Upload date:
- Size: 33.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1972e38d55e96de28c0aa288749ae0eeaf0a7055b833da20bba4fe8e70519a24
|
|
| MD5 |
06bbb54c389e99e6796e99bb502db98b
|
|
| BLAKE2b-256 |
5296d599ce09c5b81fb7e02c438f48586c4e84929e5a2b53a5b340b323269519
|
File details
Details for the file rest_cli-0.0.3-py2-none-any.whl.
File metadata
- Download URL: rest_cli-0.0.3-py2-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc9a125a3bd9bae0b07d8a71a3d92565a979427efbcc8923624e0e15b6116202
|
|
| MD5 |
6a24252cff7be6bad5b750f4177d5b81
|
|
| BLAKE2b-256 |
439b3de21f40ef372bbb6b35b68de22909f88a82e260091c16d032d4f9f256ab
|