PHPackages                             theodorejb/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. theodorejb/phaster

Abandoned → [devtheorem/phaster](/?search=devtheorem%2Fphaster)Library[HTTP &amp; Networking](/categories/http)

theodorejb/phaster
==================

A PSR-7 compatible library for making CRUD API endpoints

v4.0.0(1y ago)63.5k1MITPHPPHP &gt;=8.1CI failing

Since Mar 9Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/devtheorem/phaster)[ Packagist](https://packagist.org/packages/theodorejb/phaster)[ RSS](/packages/theodorejb-phaster/feed)WikiDiscussions master Synced 3w 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.

```
