Download the PHP package byjg/resttemplate without Composer
On this page you can find all versions of the php package byjg/resttemplate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download byjg/resttemplate
More information about byjg/resttemplate
Files in byjg/resttemplate
Package resttemplate
Short Description ByJG's Reference Architecture project for RESTFul services in PHP with docker and database integrated
License MIT
Informations about the package resttemplate
Reference Architecture project for RESTFul services in PHP
This project is a boilerplate for create Rest Applications API Ready to Use with the best techniques to improve your productivity.
What is a PHP Rest Template?
It is a PHP-based RESTful API template or boilerplate that aims to simplify the development process of RESTful web services in PHP. It provides a foundation or starting point for building APIs following REST architectural principles.
Using this PHP Rest Reference Architecture you can focus on the business logic of your application and not in the infrastructure as for example:
- Rapid Development: By offering a pre-defined structure and essential components, the template can expedite the process of building RESTful APIs in PHP.
- Standardization: The template promotes consistency and adherence to RESTful design principles, making it easier for developers to understand and collaborate on the codebase.
- Customizable: Developers can modify and extend the template to fit their specific requirements, allowing for flexibility in implementing additional features or business logic.
Key features and components:
- Uses OpenAPI specification for API documentation and endpoint creation.
- Routing: Includes a routing system that helps map incoming HTTP requests to specific API endpoints or resources.
- Middleware: It allows developers to add custom logic or perform operations before and after the request is processed.
- Handling: The project offer utilities to handle and parse incoming requests, extract parameters, and handle request methods (GET, POST, PUT, DELETE, etc.).
- Response Formatting: It provides mechanisms to format and structure API responses, including JSON serialization, error handling, and status codes.
- Authentication and Authorization: The template include support for implementing authentication and authorization mechanisms to secure API endpoints using JWT.
- Database Integration: It offers integration for connecting to databases, executing queries, and managing data persistence.
- Error Handling: The project include error handling mechanisms to properly handle and format error responses.
- Dependency Injection: It includes support for dependency injection and inversion of control (IoC) containers.
- Testing: It includes support for testing the API endpoints and resources, including unit testing and functional testing.
- PHP Standards: PSR-7 (Http Message Interface), PSR-11 (Container), PSR-16 and PSR-6 (Cache Interface) and others.
This project is not a framework. It is a template that you can use to create your own project. You can use the template as a starting point for your own project and customize it to fit your specific requirements.
Some Features Explained
This project install the follow components (click on the link for more details):
- Rest Methods API integrated with OpenAPI
- Functional Unit Tests of your Rest Method API
- PSR-11 Container and different environments
- Dependency Injection
- Login Integration with JWT
- Database Migration
- Database ORM
Getting Started
Here some examples of how to use the template:
- Getting Started, Installing and create a new project
- Add a new Table
- Add a new Field
- Add a new Rest Method
All versions of resttemplate with dependencies
ext-json Version *
ext-openssl Version *
ext-curl Version *
byjg/config Version ^4.9
byjg/anydataset-db Version ^4.9
byjg/micro-orm Version ^4.9
byjg/authuser Version ^4.9
byjg/mailwrapper Version ^4.9
byjg/restserver Version ^4.9
zircote/swagger-php Version ^4.6.1
byjg/swagger-test Version ^4.9
byjg/migration Version ^4.9
byjg/php-daemonize Version ^4.9
byjg/shortid Version ^4.9
byjg/jinja-php Version ^4.9