Download the PHP package reiterus/microapi-secure without Composer
On this page you can find all versions of the php package reiterus/microapi-secure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package microapi-secure
MicroApi Secure
MicroApi Secure is a small engine for creating application APIs based on Symfony packages, which is a development of MicroApi Core and contains security tools. Since MicroApi is based on the Symfony architecture, it can be developed to any level of complexity if desired. Forming your application based on this engine, you will always be sure that there is nothing superfluous in your code.
Features of MicroApi Secure out of the box
- ability to
- create secure endpoints
- use JWT-tokens
- authentication examples
base
,json
andtoken
- example of using a provider
- in-memory
- in-json
- users list in a JSON-file
- PhpStorm http requests files
- custom logger with named channels
- 3 configuration files
- examples of testing REST API endpoints
See also core features.
Join the development of MicroApi!
Usage
It's very simple! Just run these two commands:
composer create-project reiterus/microapi-secure folder && cd folder
make docker-start
That's all!
Now your API app is available at http://localhost:8009
JWT
To get JWT-token just send http-request to endpoint. For example, /admin
.
To check/decode this token send request to jwt/decode
endpoint.
JWT-token structure:
Logger
Makefile commands
For the convenience of working with the project, there are several make-commands: local and for Docker.
Examples
Default response at /admin
endpoint
Installation
You can install the project in two ways
From packagist.org
From GitHub repository
License
This library is released under the MIT license.
All versions of microapi-secure with dependencies
symfony/config Version ^6.2
symfony/http-kernel Version ^6.2
symfony/http-foundation Version ^6.2
symfony/routing Version ^6.2
symfony/dependency-injection Version ^6.2
symfony/framework-bundle Version ^6.2
symfony/browser-kit Version ^6.2
symfony/yaml Version ^6.2
symfony/dotenv Version ^6.2
symfony/runtime Version ^6.2
symfony/security-bundle Version ^6.2
firebase/php-jwt Version ^6.4