There is no license information available for the latest version (v0.1.0-alpha) of this package.

The PHP REST-API framework allows you to get a REST backend up and running in just minutes!

v0.1.0-alpha 2022-04-14 20:45 UTC

This package is auto-updated.

Last update: 2025-06-27 01:49:36 UTC


README

Stable Badge GitHub release GitHub latest commit Recommended PHP Version

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.