PHPackages                             yuxblank/phackp - 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. yuxblank/phackp

ActiveLibrary[Framework](/categories/framework)

yuxblank/phackp
===============

pHackp aim to provide a fast and easy way to build modern and responsive websites and apps. It provides an Model View Controller structure for organizing your project and tries to be as far as possible 'convention over configuration'

0.5.1-alpha(8y ago)181MITPHPPHP &gt;=7.0

Since Apr 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yuxblank/phackp)[ Packagist](https://packagist.org/packages/yuxblank/phackp)[ Docs](http://yuxblank.github.io/phackp)[ RSS](/packages/yuxblank-phackp/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (10)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0f76250636a9bb45f4811f537637cda6997f3bca61396b25deb35b43744a2f96/68747470733a2f2f7472617669732d63692e6f72672f797578626c616e6b2f706861636b702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yuxblank/phackp) [![Codacy Badge](https://camo.githubusercontent.com/eb496d38820dcdd0871daec619be2d604ff71eafd4520a63c6573058fb233ca7/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3065343738623763633265643463643438356261633061353333353439316234)](https://www.codacy.com/app/yuxblank/phackp?utm_source=github.com&utm_medium=referral&utm_content=yuxblank/phackp&utm_campaign=Badge_Grade)

phackp
======

[](#phackp)

PHP Micro Framework, born in PHP7 Age!

disclaimer
==========

[](#disclaimer)

pHackp is actually in alpha stage. the framework might change in ways that make alpha/beta releases un-compatible with the first stable version in the future. The framework is actually compatible with PHP7+.

Ready to start?
===============

[](#ready-to-start)

Introduction
============

[](#introduction)

pHackp aim to provide a fast and easy way to build modern and responsive websites and apps. It provides an Model View Controller structure for organizing your project and tries to be as far as possible "convention over configuration". The framework provide all basic features for develop Restful APIs, Websites and web applications.

Requirements
============

[](#requirements)

Actually the frameworks is on heavy development. it has been tested with Apache (need .htaccess mod\_rewrite) and built-in PHP 7 server (URL rewrite by root).

Features and Roadmap
--------------------

[](#features-and-roadmap)

\* marked are under development or analysis

### Main features

[](#main-features)

- Small footprint
- Polymorphic
- Totally object oriented
- Easy to use &amp; intuitive
- 0 dependencies required
- PHP 7+
- easy extensibility (ServiceProviders etc.)\*
- Almost no configuration (No yaml, xml, ini.. Just PHP)
- Great Performance, ease of use and speed of development!
- Dependency Injection done via Container (PHP-DI)
- PSR-4, PSR-7\*, PSR-11 compatible

> PSR-7 is actually extended, since pHackp ServerRequestInterface supports path params for restful routes.

### Routing

[](#routing)

- Routing is made by php code, no server configuration rules generation or requirement (just mod\_require to index.php)
- array mapped routes
- actions are mapped by Class and Method name for given url
- exclusion of non-mapped routes (return configurable error routes)
- 100% pretty urls (e.g. ...blog/title/1)
- parameter bound with simple tag {tag} (e.g. tag/{tag}/)
- REST method mapping (GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH)
- rich set of RESTful features (e.g. auto json decoding/encoding)
- GET parameters injection maps to given tag name {name} ($serverRequest-&gt;getQueryParams()\['name'\])

### Persistence

[](#persistence)

- object-relational (ActiveRecords) mapping engine built on top of PDO. (HackORM)
- API for intuitive access
- Auto model mapping (convention-based)
- OneToMany, ManyToOne, ManyToMany relationships between objects
- Parent implementation of behaviours (e.g. $object-&gt;save() .)
- Dependency injection (e.g self::oneToMany($this, 'Parent::class') returns $Parent instances.)
- Ability to use Database class as standalone to preserve "is a" OOP rule. (but Model API is more productive!)
- Models can always access PDO instance when needed ($this-&gt;getPDO())
- Doctrine2 Integration

### Model View Controller

[](#model-view-controller)

- Application lifecycle will route the current request to the specified controller method, also when errors or 404.
- Controllers takes advantages of DI, so your are free to Inject what you need (Views, Sessions, Models, Requests)
- built-in template system support template inheritance. (plain php!)
- it's all about conventions!

### Presentation layer

[](#presentation-layer)

- Built-in engine for views
- plain PHP syntax
- template inheritance
- Dynamic Hook support
- Configurable Hooks with scope isolation (or passed-by)

### Services and Providers

[](#services-and-providers)

- Dynamically register providers instances (non-singleton, single runtime instance beans)
- Reflection based invocation of interfaces methods, allowing to delegate implementation class @ runtime (eg. ErrorHandlers)
- Easy and effective API to extends and implements brand new providers or delegates
- Both Eager and Lazy provider instantiation
- Configurable, extensible and fully integrated into framework container
- Ready to use ServiceProviders
- ErrorHandler (Provide PHP error and exception handling overrides)

### PSR-4

[](#psr-4)

- use composer default autoload psr-4
- auto mapping for project classes

### PSR-7

[](#psr-7)

- ServerRequest interface is created and set into DI container
- Controller method use DI to get the current request via type injection (autowiring)

### PSR-11 (draft)

[](#psr-11-draft)

- We use PHP-DI as reference implementation
- Framework dependencies factories are managed by pHackp runtime

### RESTful

[](#restful)

- Easy, simple straightforward REST API creation
- routes GET,POST,PUT,DELETE,OPTIONS,PATCH etc. for CRUD RESTFUL standard API's
- automatic serialize/un-serialize json-to-array (PSR-7 Middleware)
- Ready to use CORS filter\*

### 3rd party projects support

[](#3rd-party-projects-support)

- PHP-DI ()
- Doctrine 2 ()

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

5

Last Release

3010d ago

PHP version history (2 changes)0.1-alphaPHP &gt;=5.6

0.3-alphaPHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12859195?v=4)[Yuri](/maintainers/yuxblank)[@yuxblank](https://github.com/yuxblank)

---

Top Contributors

[![yuxblank](https://avatars.githubusercontent.com/u/12859195?v=4)](https://github.com/yuxblank "yuxblank (264 commits)")

---

Tags

convention-over-configurationdependency-injectionmvc-frameworkphpphp7psr-11psr-4psr-7reactiverest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yuxblank-phackp/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.2k47](/packages/elgg-elgg)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[concrete5/core

Concrete – an open source content management system.

20163.8k49](/packages/concrete5-core)

PHPackages © 2026

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