PHPackages                             devtheorem/phaster - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. devtheorem/phaster

ActiveLibrary[HTTP &amp; Networking](/categories/http)

devtheorem/phaster
==================

A PSR-7 compatible library for making CRUD API endpoints

v4.0.0(1y ago)61.9k↓50%1MITPHPPHP &gt;=8.1CI passing

Since Mar 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/devtheorem/phaster)[ Packagist](https://packagist.org/packages/devtheorem/phaster)[ RSS](/packages/devtheorem-phaster/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (23)Used By (0)

Phaster
=======

[](#phaster)

Phaster is a PSR-7 compatible library for easily making CRUD API endpoints. It enables mapping API fields to columns in the database or from a select query, and implementing custom validation or row modification logic. Built on top of [PeachySQL](https://github.com/devtheorem/peachy-sql).

Installation
------------

[](#installation)

`composer require devtheorem/phaster`

Usage
-----

[](#usage)

Create a class extending `Entities`, and implement the methods to map properties to columns and define the base SQL query (see example below). Pass the callable returned by the route handling functions to your Slim or other PSR-7 compatible framework.

```
