PHPackages                             nations-original/php-simple-framework-template - 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. nations-original/php-simple-framework-template

ActiveProject

nations-original/php-simple-framework-template
==============================================

v1.0.0(1mo ago)21↑2900%ISCPHPPHP 8.3.\*

Since Mar 29Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Ondottr/PHP_SF_Template)[ Packagist](https://packagist.org/packages/nations-original/php-simple-framework-template)[ RSS](/packages/nations-original-php-simple-framework-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (47)Versions (3)Used By (0)

PHP Simple Framework — Template
===============================

[](#php-simple-framework--template)

The official project template for [PHP Simple Framework](https://github.com/Ondottr/PHP_SF_Platform). Bootstrap a full working application in one command.

**Package:** `nations-original/php-simple-framework-template`**License:** ISC **Author:** Dmytro Dyvulskyi — CEO &amp; Lead Developer, Nations Original

---

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

[](#documentation)

Full documentation is available at **[wiki.nations-original.com/framework](https://wiki.nations-original.com/framework)**.

SectionTopics[Getting Started](https://wiki.nations-original.com/framework/getting-started)Installation, constants, creating your first page[Core](https://wiki.nations-original.com/framework/core)Lifecycle, controllers, routing, middleware, views, sessions, redirects[Dual Kernel](https://wiki.nations-original.com/framework/core/dual-kernel)PHP\_SF kernel + Symfony kernel coexistence, bootstrap order[Data &amp; Persistence](https://wiki.nations-original.com/framework/data)Entities, repositories, validation, cache, fixtures, enums[Infrastructure](https://wiki.nations-original.com/framework/infrastructure)Docker, Redis, RabbitMQ, template cache, kernel config[Supporting Features](https://wiki.nations-original.com/framework/supporting)Helper functions, translation, events, CRUD controller[Development &amp; Testing](https://wiki.nations-original.com/framework/dev)PHPUnit, Codeception, dev mode[Frontend](https://wiki.nations-original.com/framework/frontend)Asset building with Webpack---

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

[](#requirements)

**Required:**

- PHP **8.3+** with extensions: `apcu`, `curl`, `gd`, `intl`, `redis`, `yaml`, `opcache`
- Composer 2.x
- Node.js 18+ with yarn
- Redis (routing cache and application cache)
- At least one database: PostgreSQL 15+ / MySQL / MariaDB

**Optional:**

- `ext-amqp` + RabbitMQ — only if you use message queues
- `ext-memcached` — only if you use Memcached as a cache backend
- Docker — `docker-compose.yml` provided for all services
- Symfony CLI — used by `run.sh` for HTTPS local dev

---

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

[](#installation)

```
composer create-project nations-original/php-simple-framework-template my-app
cd my-app
./init.sh
```

`init.sh` runs once per project — it configures database connections, generates `.env` and `config/constants.php`, creates entity/repository directories, and builds frontend assets.

For subsequent machines cloning an already-configured project:

```
./install.sh
```

Full setup details: [Installation guide](https://wiki.nations-original.com/framework/getting-started/installation).

---

Project Structure
-----------------

[](#project-structure)

```
App/
├── Http/
│   ├── Controller/          # PHP_SF attribute-routed controllers
│   ├── SymfonyControllers/  # Native Symfony controllers (fallback)
│   └── Middleware/          # Custom middleware
├── Entity/                  # Doctrine entities, created by init.sh per connection
├── Repository/              # Entity repositories, created by init.sh per connection
├── DataFixtures/            # Doctrine fixtures (per connection)
├── Enums/                   # Application enums
├── DoctrineLifecycleCallbacks/
└── Kernel.php               # App kernel (extends Symfony Kernel)
config/
├── constants.php            # App-level constants (not committed — copy from .example)
├── packages/                # Symfony bundle config (doctrine, messenger, cache, …)
└── routes.yaml              # Symfony controller route import
templates/                   # PHP view classes (App\View\ namespace)
lang/                        # Translation files
public/                      # Web root

```

---

Database Setup
--------------

[](#database-setup)

The template ships with only a dummy (default) entity manager that fails fast to prevent accidental cross-DB access. `init.sh` adds your real connections interactively — you can configure one or more, with any supported engine.

Once configured, the standard Doctrine commands work per-connection using `--em=`:

```
bin/console doctrine:database:create --if-not-exists --em=
bin/console doctrine:schema:create --em=
bin/console doctrine:fixtures:load --no-interaction --em=
```

At minimum you need one connection and one `User` entity (also generated by `init.sh`) — the framework requires it for authentication and session handling.

---

Development
-----------

[](#development)

```
./run.sh              # Start dev server on port 7000 (uses Symfony CLI if available)
bin/console           # Symfony console
npm run dev           # Frontend dev build with watch
npm run build         # Frontend production build
docker-compose up -d  # Start all infrastructure services
```

### Infrastructure services (Docker)

[](#infrastructure-services-docker)

ServicePortPostgreSQL7003MySQL7005MariaDB7006Redis7002Memcached7001RabbitMQ7004Selenium4444Full reference: [Docker &amp; Local Environment](https://wiki.nations-original.com/framework/infrastructure/docker).

---

Testing
-------

[](#testing)

Tests are written with Codeception (Unit, Functional, Acceptance suites).

```
vendor/bin/codecept run            # Run all suites
vendor/bin/codecept run Functional # Run specific suite
```

Full reference: [Codeception](https://wiki.nations-original.com/framework/dev/codeception).

---

License
-------

[](#license)

ISC — see [LICENSE.MD](LICENSE.MD).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.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

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e2ef3a4d15187330175911558005884892b23d2eac2f2f2322585376e463acc?d=identicon)[Ondottr](/maintainers/Ondottr)

---

Top Contributors

[![dmytro-dyvulskyi](https://avatars.githubusercontent.com/u/141229358?v=4)](https://github.com/dmytro-dyvulskyi "dmytro-dyvulskyi (24 commits)")[![Ondottr](https://avatars.githubusercontent.com/u/33568483?v=4)](https://github.com/Ondottr "Ondottr (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nations-original-php-simple-framework-template/health.svg)

```
[![Health](https://phpackages.com/badges/nations-original-php-simple-framework-template/health.svg)](https://phpackages.com/packages/nations-original-php-simple-framework-template)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[easycorp/easyadmin-demo

EasyAdmin Demo Application

145.7k](/packages/easycorp-easyadmin-demo)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[forumify/forumify-platform

121.8k11](/packages/forumify-forumify-platform)

PHPackages © 2026

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