varuns / php-sleep
An object-oriented PHP library for a simple REST service
Requires (Dev)
- phpunit/phpunit: ^9.4
- dev-main
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.11
- v1.9.10
- v1.9.9
- v1.9.8
- v1.9.7
- v1.9.6
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0-alpha
- v1.8.0
- v1.8.0-alpha
- v1.7.0-alpha
- v1.6.0-alpha
- v1.5.0-alpha
- v1.4.0-alpha
- v1.3.3-alpha
- v1.3.2-alpha
- v1.3.1-alpha
- v1.3.0-alpha
- v1.2.0-alpha
- v1.1.0-alpha
- v1.0.0-alpha
- v0.1.2
- v0.1.1
This package is auto-updated.
Last update: 2025-03-29 00:51:25 UTC
README
An object-oriented PHP library for a simple REST service
PHP Sleep is a PHP library for creating JSON-based REST APIs that interact with a MySQL database.
Getting Started
The library uses PHP's $_ENV
superglobal to access the environmental variables.
For this reason, PHP Sleep is only guaranteed to work when using Vercel as the hosting platform and vercel-php as the runtime. If you have not already, switch to Vercel and vercel-php and make sure your now.json
file is valid.
Usage
-
Make sure Composer is installed
-
Run
composer require varuns/php-sleep
Contributing
So you'd like to contribute to the PHP Sleep library? Excellent! Thank you very much. I can absolutely use your help. Follow the steps below:
- Read the contributing guidelines.
- Open an issue or pull request preferably using an existing template
License
PHP Sleep is 100% free and open-source, under the MIT license. You may use it however you please.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.