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

ActiveProject[Framework](/categories/framework)

laikait/laika-framework
=======================

Laika PHP Micro Framework

v4.1.2(1w ago)226MITCSSPHP &gt;=8.1CI passing

Since Sep 20Pushed 1w agoCompare

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

READMEChangelog (10)Dependencies (6)Versions (41)Used By (0)

Laika Framework
===============

[](#laika-framework)

A lightweight, fast, and flexible **MMC framework** (Model-Middleware-Controller) for PHP 8.1+, built with simplicity in mind. Laika gives you routing, models, templating, a service container, and a CLI generator — without the overhead of large frameworks like Laravel or Symfony.

[![Ask DeepWiki](https://camo.githubusercontent.com/0f5ae213ac378635adeb5d7f13cef055ad2f7d9a47b36de7b1c67dbe09f609ca/68747470733a2f2f6465657077696b692e636f6d2f62616467652e737667)](https://deepwiki.com/laikait/laika-framework)[![PHP](https://camo.githubusercontent.com/7535257ca228724c93658bd52583d4e47a9bab02c356abf6e54c1d575f2151e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c75652e737667)](https://php.net)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

---

✨ Features
----------

[](#-features)

- 🚀 **Lightweight core** — no bloat, no magic you can't trace back to a file
- 🛠️ **Expressive router** — route groups, named routes, typed parameters, pipelines &amp; filters
- 🗂️ **PDO models &amp; schema builder** — MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Firebird
- 🧩 **Service container** — a `Relay` static-proxy pattern for clean, testable app services
- 🔐 **Security by default** — direct file access denied, CSRF/CORS-ready, optional firewall middleware
- 🔑 **Multi-guard auth** — session, cookie, and token guards with Google/Facebook OAuth
- 🗃️ **Sessions &amp; queues** — pluggable backends (file/PDO/Redis/Memcached, database/Redis/JSON)
- ⚙️ **Built-in CLI** (`php laika`) — scaffold controllers, models, pipelines, filters, templates, and more
- 📦 **Composer-native** — PSR-4 autoloading, each subsystem is its own versioned package

---

📦 Installation
--------------

[](#-installation)

```
composer create-project laikait/laika-framework myproject
cd myproject
php laika app:start
```

Visit `http://127.0.0.1:8000` — you should see the default Laika landing page.

See [docs/01\_getting-started/01\_installation.md](docs/01_getting-started/01_installation.md) for requirements and manual setup.

---

📚 Documentation
---------------

[](#-documentation)

Full documentation lives in [`docs/`](docs/README.md):

SectionWhat's covered[Getting Started](docs/01_getting-started/01_installation.md)Installation, project structure, configuration, CLI[Routing](docs/02_routing/01_basic.md)Routes, groups, named routes, controllers[Pipelines](docs/03_pipeline/01_basic.md)Pre-controller middleware[Filters](docs/04_filter/01_basic.md)Post-controller middleware[Models &amp; Database](docs/05_models/01_basic.md)Query builder, schema builder, migrations[Templates](docs/06_templates/01_basic.md)Twig-based view rendering[Services &amp; Relay](docs/07_services-and-relay/01_basic.md)The service container / static proxy pattern[Hooks](docs/08_hooks/01_basic.md)Event-style hook system[Authentication](docs/09_authentication/01_basic.md)Guards, tokens, OAuth[Security (Shield)](docs/10_security/01_basic.md)Firewall middleware[Sessions](docs/11_sessions/01_basic.md)Session backends and API[Queue](docs/12_queue/01_basic.md)Background jobs and workers[Deployment](docs/13_deployment/01_basic.md)Apache/nginx, production checklist---

🧩 The Laika Ecosystem
---------------------

[](#-the-laika-ecosystem)

`laikait/laika-framework` is the application skeleton; the actual functionality ships as independently versioned Composer packages under `vendor/laikait/`:

PackagePurpose[laika-core](https://github.com/laikait/laika-core)Bootstrap, templating, hooks, exceptions, framework glue[laika-route](https://github.com/laikait/laika-route)Router, dispatcher, pipelines &amp; filters[laika-model](https://github.com/laikait/laika-model)PDO query builder &amp; schema builder[laika-relay](https://github.com/laikait/laika-relay)Service container &amp; static proxy (`Relay`)[laika-session](https://github.com/laikait/laika-session)File/PDO/Redis/Memcached sessions[laika-auth](https://github.com/laikait/laika-auth)Session/cookie/token guards, OAuth[laika-shield](https://github.com/laikait/laika-shield)Firewall middleware (rate limiting, IP/country blocking, SQLi/XSS detection)[laika-queue](https://github.com/laikait/laika-queue)Background job queue &amp; worker[laika-cli](https://github.com/laikait/laika-cli)The `laika` code generator CLIEach package has its own README with a full API reference — the docs here focus on how they fit together inside an application.

---

⌨️ CLI Quick Reference
----------------------

[](#️-cli-quick-reference)

```
php laika controller:make UserController
php laika model:make User --table=users
php laika pipeline:make Auth
php laika filter:make Log
php laika template:make admin/dashboard

php laika route:list
php laika app:migrate
php laika app:start
```

Full command reference: [docs/01\_getting-started/04\_cli.md](docs/01_getting-started/04_cli.md).

---

🤝 Contributing
--------------

[](#-contributing)

Issues and pull requests are welcome on the relevant package repository. For framework-wide changes, open an issue on [laikait/laika-framework](https://github.com/laikait/laika-framework).

📄 License
---------

[](#-license)

MIT — see [LICENSE](LICENSE).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance98

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~8 days

Total

39

Last Release

12d ago

Major Versions

v1.0.0-stable → v2.0.0-beta2025-09-25

v2.4.4 → v3.0.02026-04-06

v3.0.6 → v4.0.02026-06-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/7272cd554fe8bf859b8450494f244927ee210cd95d516325fda55d33c74e5886?d=identicon)[riyadhtayf](/maintainers/riyadhtayf)

---

Top Contributors

[![laikait](https://avatars.githubusercontent.com/u/100719384?v=4)](https://github.com/laikait "laikait (292 commits)")

---

Tags

frameworklaika-frameworklaika-mvc-frameworkphpphp-framework

### Embed Badge

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

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

###  Alternatives

[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[sergebezborodov/beanstalk-yii2

Beanstalk component for Yii Framework 2

201.2k](/packages/sergebezborodov-beanstalk-yii2)

PHPackages © 2026

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