Download the PHP package maciejbuchert/nano without Composer
On this page you can find all versions of the php package maciejbuchert/nano. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maciejbuchert/nano
More information about maciejbuchert/nano
Files in maciejbuchert/nano
Package nano
Short Description Nano is a very very tiny php app that allows you to create very fast rest interfaces.
License MIT
Homepage https://github.com/maciejbuchert/nano
Informations about the package nano
Nano
CONTRIBUTORS WELCOME
Nano is a very very tiny php library that allows you to create very fast rest APIs.
Think it's like Slim but Nano is only ~6.4 Kilobytes.
Requirements
Strictly requires PHP 7.4.
Install
Via Composer
Usage
Simply instantiate and include in your app.
I know. It's not static.
Defining REST resources
Defining rest routes and using wildcards are easy.
Basic Auth
It's possible hide your routes behind an authentication layer. Currently it expects basic auth, more methods to come soon.
Hence the basic auth is not encrypted, using https is strictly advised.
Logging
It's possible to requests and responses with Monolog.
After setting the logger, all requests and responses will be logged into nano.log file.
Testing
You can test your live API using Guzzle/Client
Motivation
Mostly educational purposes.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Midori Kocak
- All Contributors
License
The MIT License (MIT). Please see License File for more information.