PHPackages                             pmaasz/spartan - 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. pmaasz/spartan

ActiveLibrary

pmaasz/spartan
==============

Basic PHP Framework

v1.2.0(7y ago)114MITPHP

Since Nov 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pmaasz/SPARTAN)[ Packagist](https://packagist.org/packages/pmaasz/spartan)[ RSS](/packages/pmaasz-spartan/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (2)Used By (0)

SPARTAN
=======

[](#spartan)

PHP Framework (FEP)

This PHP framework is for people interested in learning PHP or understanding how a PHP-Framework works. It displays the core functionalities of a framework to set up a website with a database connection. The structure of this framework should make it easy for anyone to switch to a full qualified framework like Symfony.

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

[](#installation)

### 1. Download Project

[](#1-download-project)

**Attention:** The sourcecode should be directly installed by the webserver's user to avoid access right issues. Alternativly see '2'.

```
git clone https://github.com/pmaasz/SPARTAN.git
```

### 2. Configutrate Access Rights (not required)

[](#2-configutrate-access-rights-not-required)

```
sudo chown www-data:www-data [Filename] -R
sudo chmod 2775 [Filename] -R
```

### 3. Upload Database Structure

[](#3-upload-database-structure)

Upload the spartan.sql file into your mysql application

### 4. create config.json

[](#4-create-configjson)

The config.json file has to be created in the config directory. Fill out the missing parameters for user and password.

```
{
    "database":{
        "driver": "mysql",
        "user": "",
        "password": "",
        "dbname": "spartan",
        "host": "localhost"
    }
}
```

### 5. what's missing?

[](#5-whats-missing)

- Entity Manager
- Manage database via entity manager
- Dependency Injection
- Kernel (Routing), currently in index.php
- improve Template Engine (partials, layouts)
- Template Engine interfacing Twig
- Caching

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Unknown

Total

1

Last Release

2719d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85eec8c6155890020da2b77b691a35bba368eba893d769d568824da3eff552b1?d=identicon)[pmaasz](/maintainers/pmaasz)

---

Top Contributors

[![pmaasz](https://avatars.githubusercontent.com/u/38561735?v=4)](https://github.com/pmaasz "pmaasz (100 commits)")

---

Tags

hacktoberfestphp-framework

### Embed Badge

![Health badge](/badges/pmaasz-spartan/health.svg)

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

PHPackages © 2026

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