PHPackages                             phastasf/framework - 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. [Framework](/categories/framework)
4. /
5. phastasf/framework

ActiveLibrary[Framework](/categories/framework)

phastasf/framework
==================

A lightweight PHP framework for building CLI, web and API applications

1.2.0(3mo ago)3441MITPHPPHP ^8.2

Since Jan 2Pushed 3mo agoCompare

[ Source](https://github.com/phastasf/framework)[ Packagist](https://packagist.org/packages/phastasf/framework)[ RSS](/packages/phastasf-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (23)Versions (9)Used By (1)

Phast Framework
===============

[](#phast-framework)

[![Latest Version](https://camo.githubusercontent.com/219f2d14844e2239b21047a7ff053323fa889ad22b3cfb4d2d842fb31ad71028/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686173746173662f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phastasf/framework)[![License](https://camo.githubusercontent.com/85f8b6e9a36f3eb653bbd14cf73ea2a92f3d7db16b0f39d88bdfd51fb54ce6f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70686173746173662f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/a0f0a25a5a883397b3285cd7bcd7e3f5d924220004682596c6fd980ce1cfdaf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f70686173746173662f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phastasf/framework)

A lightweight, modern PHP framework for building CLI, web, and API applications. Built on PSR standards with a clean, intuitive API.

Features
--------

[](#features)

- **PSR Standards**: PSR-7, PSR-11, PSR-15, PSR-3, PSR-6, PSR-16, PSR-20
- **Dependency Injection**: Automatic dependency resolution
- **Routing &amp; Middleware**: Fast routing with PSR-15 middleware pipeline
- **Database &amp; ORM**: Multi-database support (MySQL, PostgreSQL, SQLite, SQL Server) with Datum ORM
- **Migrations**: Schema versioning with Kram
- **Views**: Template engine with layout inheritance
- **Authentication**: JWT-based authentication
- **Queue System**: Job queues with Redis and ElasticMQ/SQS
- **Caching**: Multiple backends (File, Memory, Redis, Predis, Memcache)
- **Logging**: Flexible logging with multiple backends
- **Email**: SMTP, Mailgun, and Resend transports
- **Validation**: Powerful input validation
- **Console Commands**: Built-in CLI commands and generators

Requirements
------------

[](#requirements)

- PHP 8.2+
- Composer

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

[](#installation)

```
composer require phastasf/framework
```

Quick Start
-----------

[](#quick-start)

### Web Application

[](#web-application)

Create `public/index.php`:

```
