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

ActiveLibrary[Framework](/categories/framework)

bleicker/framework-base
=======================

1.2.0(11y ago)03PHP

Since Apr 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/pumatertion/bleicker.framework.base)[ Packagist](https://packagist.org/packages/bleicker/framework-base)[ RSS](/packages/bleicker-framework-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (12)Used By (0)

Please Note
===========

[](#please-note)

This software is NOT production ready! Its just my personal playground currently :)

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

[](#installation)

Via composer create-project

```
composer create-project bleicker/framework-base

```

### Setup

[](#setup)

Sql Settings

```
cp Configuration/Secrets.Example.php Configuration/Secrets.php

```

Run cli command to create the db and build needed tables:

```
vendor/bin/doctrine orm:schema-tool:update --force --dump-sql

```

### Start a php server process either in development- or production context

[](#start-a-php-server-process-either-in-development--or-production-context)

Production:

```
CONTEXT=production nohup php -S localhost:8001 -t Public >> /dev/null 2>&1 &

```

Development:

```
nohup php -S localhost:8000 -t Public >> /dev/null 2>&1 &

```

Open your browser and visit either [Development-Server](http://localhost:8000/) or [Production-Server](http://localhost:8001/)

### Switch to MySql

[](#switch-to-mysql)

If you want to use mysql instead of sqlite adjust the driver in Secrets.php f.e. to

```
['url' => 'mysql://user:secret@localhost/mydb']

```

And run

```
vendor/bin/doctrine orm:schema-tool:update --force --dump-sql

```

### Doctrine Mapping

[](#doctrine-mapping)

For persistence Doctrine is in use. By default i am using its yml configuration to bind models and mapping informations. Simply add your yaml configuration in Configuration/Schema/Persistence/ Folder. And refresh you db using the doctrine command line

```
vendor/bin/doctrine orm:schema-tool:update --force --dump-sql

```

[See Doctrine Docs](http://doctrine-orm.readthedocs.org/en/latest/)

### Routes

[](#routes)

See Configuration/Routing.php to get some small examples how to introduce new Routes.

[See FastRoute Docs](https://github.com/nikic/FastRoute)

### Templating

[](#templating)

I introduced namelesscoder's fluid decoupled version as default template engine. Templates are located in the Folder "Templates" an resolved by the namespace of called Controller::Action. [See Fluid Docs](https://github.com/NamelessCoder/TYPO3.Fluid)

### Your App Stuff

[](#your-app-stuff)

A good location for your Controllers/Services/DomainModels etc is the "App" Folder

#### Registry

[](#registry)

Add something:

```
Registry::add('foo.bar.baz', 'Hello World');

```

Getting Registry entry everywhere in your code

```
Registry::get('foo.bar.baz');

```

#### ObjectManager

[](#objectmanager)

Add Object

```
ObjectManager::register(MyClassInterface::class, new MyClass('foo', 'bar'));

```

Getting the Object everywhere in your Code with

```
ObjectManager::get(MyClassInterface::class);

```

##### Registering a Closure as Factory

[](#registering-a-closure-as-factory)

Add Closure

```
ObjectManager::register(MyClassInterface::class, function(){new MyClass()});

```

To make it a singleton just register it as this:

```
ObjectManager::makeSingleton(MyClassInterface::class);

```

Getting the Object everywhere in your Code with

```
ObjectManager::get(MyClassInterface::class);

```

### TypeConverter

[](#typeconverter)

TypeConverter can be used to convert some source to a defined target type.

Register a TypeConverter

```
Converter::register('registrationFormDto', new RegistrationFormDtoConverter());

```

Convert a source

```
Converter::convert($postData, RegistrationFormDtoConverter::class);

```

#### Controller Security

[](#controller-security)

To secure a Controller::Action you can add a Vote to the AccessVoter Object. The Vote receives a Closure wich could be anything you want. The arguments of the Controller will be passed to this closure. So if you need them, use them. [See this example](https://github.com/pumatertion/bleicker.framework.base/blob/master/Configuration/ControllerSecurity.php)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

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

Every ~0 days

Total

11

Last Release

4037d ago

### Community

Maintainers

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

---

Top Contributors

[![pumatertion](https://avatars.githubusercontent.com/u/1853527?v=4)](https://github.com/pumatertion "pumatertion (122 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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