Skip to main content

A perfect tool for creating Restful web service in PHP

Project description

Rest CLI Build Status PyPI version Documentation

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

  1. 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>
  1. Change directory to service and write some migrations at src/Shared/Migration
$ rest migrate
  1. Synchronize model - repository - service - controller - test cases
  • To create some awesome apis, update your routes at config/api/*.json
$ rest sync
  1. View route list
  • To see which routes are configured and manage apis
$ rest route
  1. Serve your application to test in browser
$ rest serve
  1. Test your application with PHPUnit
$ rest test
  1. Check current version
$ rest version
  1. Update new version of rest-cli ?
$ rest upgrade
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rest-cli-0.0.3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rest_cli-0.0.3-py2.7.egg (33.3 kB view details)

Uploaded Egg

rest_cli-0.0.3-py2-none-any.whl (17.1 kB view details)

Uploaded Python 2

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

Hashes for rest-cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9ae38b07b06142e5a0e64fc052d0dee178628ea44cc4b3b8b33692b005e7a5bd
MD5 bc8f8e186276444c5438c09b7f78b513
BLAKE2b-256 a76814b4ce738fe9c9d425ae9e56d797210805ef0cd00ec27706106e0fbd7f77

See more details on using hashes here.

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

Hashes for rest_cli-0.0.3-py2.7.egg
Algorithm Hash digest
SHA256 1972e38d55e96de28c0aa288749ae0eeaf0a7055b833da20bba4fe8e70519a24
MD5 06bbb54c389e99e6796e99bb502db98b
BLAKE2b-256 5296d599ce09c5b81fb7e02c438f48586c4e84929e5a2b53a5b340b323269519

See more details on using hashes here.

File details

Details for the file rest_cli-0.0.3-py2-none-any.whl.

File metadata

File hashes

Hashes for rest_cli-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 dc9a125a3bd9bae0b07d8a71a3d92565a979427efbcc8923624e0e15b6116202
MD5 6a24252cff7be6bad5b750f4177d5b81
BLAKE2b-256 439b3de21f40ef372bbb6b35b68de22909f88a82e260091c16d032d4f9f256ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page