sandro.ruefenacht / phre-api
The PHP REST-API framework allows you to get a REST backend up and running in just minutes!
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 5
Type:project
Requires
- php: >=7.4.0
- ext-json: *
- ext-pdo: *
- vlucas/phpdotenv: ^5.3
Requires (Dev)
- phpunit/phpunit: >=8.5
This package is auto-updated.
Last update: 2025-06-27 01:49:36 UTC
README
PhRe-API - PHP REST-API
Yet another PHP Backend Framework. The possibility that it will not bring any new features is pretty big. Soooo... Are you sure you want to take a look at this?
Well... Here we go then!
Documentation
Installation
In order to have a configuration file copy the .env.example
file and name it .env
.
Example API
If you wanna use the example API, you will need to import the sql/db.sql
script in a MySQL environment. Don't forget to connect PhRe-API with your database by configuring the credentials inside the .env
file.
Configuration
Inside of the .env
-file there are a few settings you might wanna check.
You can for example specify which kinds of messages will be outputted and which ones will be suppressed.
Error Messages and such
To output error, debug and other useful messages please use the class PHREAPI\kernel\utils\output\Logger
.
This will also check in the .env
-file if the message-level is even allowed to be printed out.