varuns / php-sleep
An object-oriented PHP library for a simple REST service
Requires (Dev)
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2026-05-29 01:29:00 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.