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

ActiveProject[Framework](/categories/framework)

sofyphp/framework
=================

Sofy — minimal PHP 8.3 MVC framework

0.10.0(1mo ago)03MITPHPPHP ^8.3

Since Jun 1Pushed 1mo agoCompare

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

READMEChangelogDependencies (2)Versions (29)Used By (0)

Sofy
====

[](#sofy)

### The batteries-included PHP framework with **zero runtime dependencies**

[](#the-batteries-included-php-framework-with-zero-runtime-dependencies)

Build the whole app — UI, admin, auth, search, real-time chat, notifications — with nothing but PHP. No node, no templates, no build step, no vendor bloat.

[![PHP](https://camo.githubusercontent.com/38027453aeb7eb818641c9de8f82b7624c3558d92634f1946edc715c3ddf8956/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)[![License](https://camo.githubusercontent.com/3dbbde5f79a33abd50d80ee2476ee9236804a30aea2f11009a427a50ac6ef76c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d323263353565)](LICENSE)[![Dependencies](https://camo.githubusercontent.com/48e3ea62e3e9ce05cc9984d5e291032ab85b9586ad6efa5705bcd6db8b90d32c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72756e74696d65253230646570732d302d666636623364)](composer.json)[![Tests](https://camo.githubusercontent.com/62c75360ec7ddee120c2e60bad126582a5c108cb2b70a010f55731ee83218d07/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d504850556e69742d336238326636)](tests)

**English** · [Русский](README.ru.md) · [Docs](docs/) · live UI demo at `/ui-demo`

---

Why Sofy?
---------

[](#why-sofy)

Most frameworks hand you a router and a stack of Composer packages, then send you to npm for the UI. **Sofy ships the whole product** — and renders styled HTML straight from PHP.

```
return UI::page('Dashboard')
    ->add(
        UI::grid(3, [
            UI::stat('Revenue', '$42k')->color('#10b981'),
            UI::stat('Users',    1240, '+5%'),
            UI::stat('Active',    983, '+2%'),
        ]),
        UI::card('Welcome', UI::alert('No templates. No build step. Just PHP.', 'info')),
    )
    ->response();
```

No `.blade`, no webpack, no `package.json`. The component renders themed, responsive HTML with transitions, dark/light mode and i18n built in.

What's in the box
-----------------

[](#whats-in-the-box)

**46+ UI components**Cards, tables, forms, charts, modals, drawers, tabs… pure PHP, theme-aware, `->color()` any of them**Secure by default**Auth-by-default `/admin`, CSRF, secure session cookies, security headers, AES-256, hashing — out of the box**ORM + migrations**ActiveRecord, query builder, relations, eager loading, seeders, factories**Search engine**Zero-dependency inverted index, `Searchable` models, a searchable `UI::combobox`**Real-time messaging**In-admin user-to-user chat (`UI::chat`) — 1:1 &amp; group channels, WebSocket or polling**Browser notifications**Desktop notifications **with sound** (synthesized, zero-asset) from any `$user->notify()`**Admin panel**`/admin` with menu, widgets, DB browser, SQL console, one-click updates**Fast in production**opcache preload, route/config cache, a UI asset compiler — `php sofy optimize`**One-command deploy**`sudo php sofy full-install` provisions a whole Linux box; services run under systemd**Rich CLI**Scaffolding, migrations, queue, scheduler, REPL, service management**Modules &amp; marketplace**Drop a folder in `modules/`, install from a catalog**Tested**PHPUnit core suite — `composer test`Quick start
-----------

[](#quick-start)

```
composer create-project sofyphp/framework my-app   # or: git clone … && composer install
cd my-app
cp .env.example .env
php sofy key:generate
php sofy migrate
php sofy admin:create        # interactive admin user
php -S localhost:8000 -t public
```

Open  — visit `/admin` (login at `/admin/login`), the live component reference at `/ui-demo`, and the docs at `/docs`.

```
// routes/web.php
$router->get('/hello/{name}', fn(Request $r, string $name): Response =>
    UI::page("Hello, $name!")
        ->add(UI::hero("Hello, $name!", 'Welcome to Sofy.')
            ->action(UI::button('Get started', '/docs', 'primary')))
        ->response()
);
```

Production in one command
-------------------------

[](#production-in-one-command)

```
sudo php sofy full-install        # interactive: domain, PHP, web server, SSL, DB, services
```

The wizard installs PHP + extensions, your web server (**Caddy** / Nginx / Apache) with HTTPS, the database, sets permissions, runs migrations, and brings up **background services under systemd** — queue worker, WebSocket server and Redis — so the box comes up fully running. Add or manage them anytime:

```
sudo php sofy service:install all   # redis + ws + queue + scheduler
php sofy service:status
```

Then squeeze out the throughput:

```
php sofy optimize     # route + config cache + opcache preload
php sofy ui:build      # extract CSS/JS into cached static assets
```

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

[](#requirements)

- **PHP 8.3+** · extensions: `pdo`, `curl`, `mbstring`, `openssl`, `fileinfo`, `simplexml`
- Optional: `redis` (cache/session/broadcast), `pcntl` (WebSocket graceful shutdown)
- Production installer: Linux + root

Documentation
-------------

[](#documentation)

Full docs in [`docs/`](docs/) (browsable in-app at `/docs`):

[Getting started](docs/01-getting-started.md) · [Routing](docs/02-routing.md) · [Views &amp; UI](docs/04-views.md) · [Database](docs/05-database.md) · [Auth](docs/06-auth.md) · [Performance](docs/16-performance.md) · [Search](docs/17-search.md) · [Messenger](docs/18-messenger.md) · [Notifications](docs/19-notifications.md)

Release notes: [`CHANGELOG.md`](CHANGELOG.md) (also at `/admin/system/update`).

License
-------

[](#license)

[MIT](LICENSE) — © Sofy contributors.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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 ~0 days

Total

28

Last Release

50d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/142930046?v=4)[ivdudnik](/maintainers/ivdudnik)[@ivDudnik](https://github.com/ivDudnik)

---

Top Contributors

[![ivDudnik](https://avatars.githubusercontent.com/u/142930046?v=4)](https://github.com/ivDudnik "ivDudnik (46 commits)")

---

Tags

phpframeworkrouterormmvcno-dependencies

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpmv/ubiquity

Ubiquity-framework

69939.5k6](/packages/phpmv-ubiquity)[letsdrink/ouzo

Ouzo PHP MVC framework

7210.7k1](/packages/letsdrink-ouzo)[mirekmarek/php-jet

PHP Jet is modern, powerful, real-life proven, really fast and secure, small and light-weight framework for PHP8 with great clean and flexible modular architecture containing awesome developing tools. No magic, just clean software engineering.

241.3k](/packages/mirekmarek-php-jet)

PHPackages © 2026

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