PHPackages                             crimsonking/fragments - 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. crimsonking/fragments

AbandonedArchivedLibrary

crimsonking/fragments
=====================

A small PHP framework for web applications

v0.9(5y ago)0501AGPL-3.0-or-laterPHP

Since Oct 6Pushed 4y agoCompare

[ Source](https://github.com/o-alquimista/fragments)[ Packagist](https://packagist.org/packages/crimsonking/fragments)[ RSS](/packages/crimsonking-fragments/feed)WikiDiscussions master Synced today

READMEChangelog (9)DependenciesVersions (9)Used By (1)

Fragments
=========

[](#fragments)

Fragments aims to be a small PHP framework for web applications. Keep in mind that this project is merely an experiment, and is not recommended for use in production.

It has its own router component and is heavily inspired by [Symfony](https://symfony.com/).

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

[](#requirements)

- PHP 8 or newer
- [Composer](https://getcomposer.org/)

Getting started
---------------

[](#getting-started)

1. Create a blank project: `composer create-project crimsonking/fragments-skeleton `
2. Configure your web server so that its root directory is `/public` and the fallback resource is `index.php`.
3. Create `/config/pdo.ini` with the following lines to configure database connection details:

```
driver = mysql
host = localhost
;port = 3306
database = fragments_app
;socket = /path/to/socket
;charset = utf8mb4
username = example
password = example

```

4. Create your first controller at `/src/Controller/`.

```
namespace App\Controller;

use Fragments\Bundle\Controller\AbstractController;
use Fragments\Bundle\Attribute\Route;
use Fragments\Component\Http\Response;

class MyController extends AbstractController
{
    #[Route("/", name: "main_page", methods: ["GET"])]
    public function mainPage(): Response
    {
        // Render a template
        return $this->render('main/main_page.php');
    }
}
```

License
-------

[](#license)

Copyright 2019-2021 Douglas Silva (0x9fd287d56ec107ac)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see .

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Recently: every ~100 days

Total

8

Last Release

1834d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e57b8e1d05cab0af28518ccb6d8932806c05d6f038ff3f4d3560b851601fc7d0?d=identicon)[crimsonking](/maintainers/crimsonking)

---

Top Contributors

[![o-alquimista](https://avatars.githubusercontent.com/u/25424263?v=4)](https://github.com/o-alquimista "o-alquimista (268 commits)")

---

Tags

frameworkphp

### Embed Badge

![Health badge](/badges/crimsonking-fragments/health.svg)

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

PHPackages © 2026

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