PHPackages                             flamesphp/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. flamesphp/framework

ActiveLibrary[Framework](/categories/framework)

flamesphp/framework
===================

The Flames PHP Framework.

1.0.0(6mo ago)9101MITPHPPHP ^8.3

Since Nov 24Pushed 6mo ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (1)

[![Flames Logo](https://camo.githubusercontent.com/e142dbcfe03046327c57151339a53722c6c51298fab30945e177dc7541065c6c/68747470733a2f2f692e6962622e636f2f354c42734730392f666c616d65732e706e67)](https://flamesphp.com)

[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://opensource.org/licenses/MIT)

### The first PHP Framework cross side.

[](#the-first-php-framework-cross-side)

About Flames
------------

[](#about-flames)

**Flames** is a **PHP framework** for frontend, backend, console applications and a set of **PHP components**.

Why should I migrate to the Flames?
-----------------------------------

[](#why-should-i-migrate-to-the-flames)

- Flames framework created for high performance and large number of accesses.
- Only 1.12ms from kernel boot to call controller (17-18x faster than Laravel, closer from Slim).
- You don't need to learn JS to develop your frontend, just run PHP 8.3 natively in Flames (WebAssembly).
- Native client bridge to allow PHP to JS and JS to PHP.
- ORM with automatic migrations turn database easy.
- ORM with Models and Repositories.
- Server HTTP Client based on GuzzleHttp.
- Client HTTP Client based on Axios (PHP GuzzleHttp Fetch wrapper).
- Frontend PHP engine with Routes, Controllers and Elements wrapper.
- Templating engine based on TWIG running on backend and frontend.
- Async Coroutines running outside CLI without external extensions.
- Command for build PHP project as static website (to upload on S3, GitHub Pages, CloudFlare Pages or simple HTML-only server).
- JetBrains PhpStorm and Visual Code plugins.
- Platform Engine (Windows Only), to do things that PHP can't (ex: get server mouse position, supporting automate server GUI apps (like Selenium, but for O.S.) using OCR's and \[mouse/keyboard interceptor : under development\]).
- Automatic build client PHP files and load page (like Angular).
- Automatic detect CSS/JS changed files and load page.
- Build App as Native (for Windows and Linux) based on ElectronJS
- Build Native App Setup (for Windows) based on Issrc.
- Native App bridge to allow PHP to JS (ElectronJS) and JS (ElectronJS) to PHP.
- Native App remote (ex: start native OS calculator by PHP).
- Native App controllers (open DevTools, get hardware info, etc).
- Client DevTools working at mobile without Chrome Remote DevTools (all browsers in Android and iOS).
- Custom tags template like Polymer (using PHP WebComponents).

Benchmark
---------

[](#benchmark)

### From server kernel boot to call controller

[](#from-server-kernel-boot-to-call-controller)

Request TimeQueue RequestsPure PHP0.53ms1887 p/secFlames beta0.11.12ms893 p/secSymfony 6.22.81ms355 p/secCakePHP 4.44.14ms241 p/secLumen 10.04.46ms224 p/secLaminas 2.05.13ms194 p/secFuel 1.95.31ms188 p/secCodeIgniter 4.312.65ms79 p/secLaravel 10.019.48ms51 p/sec### From client kernel load/boot (CDN)

[](#from-client-kernel-loadboot-cdn)

First Request TimeCached Request TimeFlames PHP 8.3 kernel22ms1msmbstring PHP extension *(optional)*24ms1msintl PHP extension *(optional)*43ms2msgd (freetype+png+webp+jpeg) PHP extension *(optional)*31ms1msopenssl PHP extension *(optional)*46ms2mssimplexml PHP extension *(optional)*23ms1msxml PHP extension *(optional)*38ms2mssqlite PHP extension *(optional)*22ms1mspdo\_sqlite PHP extension *(optional)*24ms1msphar PHP extension *(optional)*9ms1ms-yaml PHP extension *(optional)*4ms1ms-zip PHP extension *(optional)*3ms1ms-zlib PHP extension *(optional)*3ms1ms-From kernel boot to call controller189ms128ms*PHP dynamic extensions can be loaded at runtime as needed. It is not necessary to load them at boot.*

Release
-------

[](#release)

Working in progress...

Installation
============

[](#installation)

- Copy .env.dist to .env.

#### Setup Docker with Composer

[](#setup-docker-with-composer)

- Clone (or download zip) our [skeleton repository](https://github.com/flamesphp/skeleton).
- Choose PHP Interpreter containers *(in docker-compose.yml)*
- Run `composer update` in your root folder
- Run `docker-compose up -d` in your root folder
- Run `php bin install` in your docker php container

#### Setup Local with Composer

[](#setup-local-with-composer)

- Clone (or download zip) our [skeleton repository](https://github.com/flamesphp/skeleton).
- Required PHP 8.3 / 8.2
- Required PHP mbstring extension
- Required PHP Composer
- Required PHP Interpreter (supported)
- Run `composer update` in your root folder
- Run `php bin install` in your root folder
- Run `php bin server {host}:{port}` *(optional, case not use Apache/NGINX)*

#### Setup Docker

[](#setup-docker)

- Clone (or download zip) this repository.
- Choose PHP Interpreter containers *(in docker-compose.yml)*
- Run `docker-compose up -d` in your root folder
- Run `git submodule add git@github.com:{user}/{repo}.git App` to setup your app repository *(optional)*
- Run `php bin install` in your docker php container

#### Setup Local

[](#setup-local)

- Clone (or download zip) this repository.
- Required PHP 8.2/8.3
- Required PHP mbstring extension
- Required PHP Interpreter supported
- Run `git submodule add git@github.com:{user}/{repo}.git App` to setup your app repository *(optional)*
- Run `php bin install` in your root folder
- Run `php bin server {host}:{port}` *(optional, case not use Apache/NGINX)*

#### PHP Interpreters Supported

[](#php-interpreters-supported)

- Apache + Module PHP + HtAccess *(config using template .htaccess)*
- Apache + PHP-FPM *(WIP)*
- NGINX + PHP-FPM *(config using template .docker/nginx/default.conf)*
- RoadRunner + PHP-FPM *(WIP)*

Important things
================

[](#important-things)

- Continuous development, we are here to stay.
- Would you like a new feature? Create an issue.
- Want to be a contributor? Just do and create a pull request.

TODO
====

[](#todo)

- Automatic build SCSS/SASS and refreshs pages like Angular.
- Performance goal: 10.000 database rows rendered in template engine at 10ms.
- ORM support: PostgreSQL, Oracle Database, SQL Server, ElasticSearch, MongoDB, Redis Stack, Apache Cassandra, Amazon DynamoDB and SQLite.
- Caching ORM models, with support: KeyDB Flash (KeyDB with RocksDB), KeyDB, Redis, Redis Stack, MemCached and FileStorage.
- Profiler injection with requests, benchmarks, memory, etc.
- Command for build JS/CSS minified bundles.
- Command for build obfuscated PHP/JS files.
- Caching generic, with support: KeyDB Flash (KeyDB with RocksDB), KeyDB, Redis, Redis Stack, MemCached and FileStorage.
- WebSocket support with parallels (websocket + socket) together.
- Frontend ORM using IndexedDB with Models and Repositories.
- Selenium like undetected automated browser.
- Plugins community with permissions support (like android).
- Run JavaScript on backend for render templates using Vue.js, React ou AngularJS.
- PHP VM inside PHP, allowing custom disabling functionalities.
- P2P/TOR protocol support.
- Database Admin supporting all types of database (include from cache) like PhpMyAdmin.

What we learned?
================

[](#what-we-learned)

- PHP can be a "cross-side" language: We learned that it's possible to run PHP 8.3 natively on the frontend (client-side) using WebAssembly, eliminating the need to write JavaScript to create dynamic and interactive interfaces.
- High performance is achievable: A modern PHP framework can be extremely fast. With an architecture focused on performance, it's possible to achieve boot times up to 18 times faster than popular frameworks like Laravel, competing directly with micro-frameworks like Slim.
- The developer experience can be unified: It is feasible to unify backend and frontend development, allowing the use of the same tools and concepts in both environments, such as a template engine (Twig) and an HTTP client (Guzzle/Axios wrapper) that work transparently on both sides.
- PHP can transcend the web: The framework's capability goes beyond websites and APIs. We learned that it's possible to compile PHP projects as static sites (for S3, GitHub Pages), native desktop applications (Windows/Linux via ElectronJS), and even automate operating system tasks (via the Platform Engine).
- Database abstraction can be simple and powerful: An ORM with support for Models and Repositories can simplify database interaction, and with automatic migrations, schema management becomes a trivial task.
- Asynchronous development in PHP is possible without extensions: It's possible to implement and use asynchronous Coroutines directly within the framework, even outside of a CLI environment, without relying on external extensions like Swoole or Revolt.
- Closed-source projects can evolve into Open Source: We learned that a robust framework, tested for years in high-stakes environments (banks, government), can be refactored and opened up to the community, sharing knowledge and fostering collaboration.

License
-------

[](#license)

The Flames framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

*Flames was developed from scratch, with the goal of replacing the legacy KrupaBOX private framework (v1 2004-2015 with PHP 4.3-5.3 and v2 2016~2023 with PHP 5.4-7.4), used in several banks, large streaming platforms and government agencies. Now in an open-source way, created by **[kazzkzpk](https://github.com/kazzkzpk)**.*

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance66

Regular maintenance activity

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

198d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/929c039b1c897e66fba28b9fa13497054a42dbeb226750da41f1e8327e1cfe81?d=identicon)[flames](/maintainers/flames)

![](https://www.gravatar.com/avatar/980c0f17f17de90e9c97945513e8aa398299c921fc66fbd505dbd4eec428fcf4?d=identicon)[kazzkzpk](/maintainers/kazzkzpk)

---

Top Contributors

[![kazzkzpk](https://avatars.githubusercontent.com/u/11681305?v=4)](https://github.com/kazzkzpk "kazzkzpk (248 commits)")[![flamesphp](https://avatars.githubusercontent.com/u/161556463?v=4)](https://github.com/flamesphp "flamesphp (10 commits)")

---

Tags

frameworklaravel

### Embed Badge

![Health badge](/badges/flamesphp-framework/health.svg)

```
[![Health](https://phpackages.com/badges/flamesphp-framework/health.svg)](https://phpackages.com/packages/flamesphp-framework)
```

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27431.5k](/packages/rahulalam31-laravel-abuse-ip)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
