PHPackages                             mintyphp/core - 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. mintyphp/core

ActiveLibrary[Framework](/categories/framework)

mintyphp/core
=============

v4.0.5(1mo ago)51.3k↓80%52MITPHPPHP &gt;=8.0

Since Oct 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/mintyphp/core)[ Packagist](https://packagist.org/packages/mintyphp/core)[ RSS](/packages/mintyphp-core/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (10)Versions (113)Used By (2)

MintyPHP Core
=============

[](#mintyphp-core)

A lightweight, minimalist PHP framework providing essential components for modern web applications.

MintyPHP will run on any Linux web server running PHP + MariaDB + Memcache

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

[](#requirements)

- **PHP**: &gt;= 8.0
- **Extensions**:
    - `ext-memcached`: Required for caching functionality
    - `ext-mysqli`: Required for database operations

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

[](#installation)

Install MintyPHP Core via Composer:

```
composer require mintyphp/core
```

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

[](#development)

### Project Structure

[](#project-structure)

The project follows a dual-layer architecture:

- **`src/Core/`**: Contains the core implementation classes (e.g., `Core/Template.php`, `Core/Router.php`)
- **`src/`**: Contains auto-generated static wrapper classes (e.g., `Template.php`, `Router.php`)

### Important: Do NOT Edit Generated Classes

[](#important-do-not-edit-generated-classes)

**The wrapper classes in `src/` are auto-generated.** Do not manually edit these files as your changes will be overwritten.

### Making Changes

[](#making-changes)

1. **Edit Core Classes**: Make all changes to files in `src/Core/` directory
2. **Regenerate Wrappers**: After modifying core classes, regenerate the wrapper classes:

```
php generate_wrappers.php
```

This script automatically generates static wrapper classes that provide a convenient facade pattern for the instance-based Core classes.

### Development Workflow

[](#development-workflow)

```
# 1. Make changes to core classes
nano src/Core/Template.php

# 2. Regenerate wrapper classes
php generate_wrappers.php

# 3. Run tests to verify changes
./test.sh

# 4. Run static analysis (optional)
vendor/bin/phpstan analyse
```

Running Tests
-------------

[](#running-tests)

### Run All Tests

[](#run-all-tests)

```
./test.sh
```

Or directly with PHPUnit:

```
vendor/bin/phpunit tests
```

### Run Specific Test Class

[](#run-specific-test-class)

```
vendor/bin/phpunit tests/Core/RouterTest.php
```

### Run Specific Test Method

[](#run-specific-test-method)

```
vendor/bin/phpunit --filter testAdmin tests/Core/RouterTest.php
```

### Run with Coverage (if Xdebug is installed)

[](#run-with-coverage-if-xdebug-is-installed)

```
vendor/bin/phpunit --coverage-html coverage
```

Static Analysis
---------------

[](#static-analysis)

Run PHPStan for static code analysis:

```
vendor/bin/phpstan analyse
```

Components
----------

[](#components)

MintyPHP Core provides the following components:

- **Router**: URL routing and request handling
- **Template**: Template rendering engine
- **DB**: Database abstraction layer
- **Auth**: Authentication management
- **Session**: Session handling
- **Cache**: Caching mechanisms
- **Firewall**: Security and access control
- **Orm**: Object-relational mapping
- **Buffer**: Output buffering
- **Curl**: HTTP client wrapper
- **Token**: Token generation and validation
- **Totp**: Time-based one-time password support
- **I18n**: Internationalization support
- **NoPassAuth**: Passwordless authentication
- **Analyzer**: Code analysis utilities
- **Debugger**: Debugging and profiling tools

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance93

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.4% 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 ~25 days

Recently: every ~14 days

Total

111

Last Release

36d ago

Major Versions

v1.1.7 → v2.0.02018-10-27

v2.5.25 → v3.0.02022-09-22

v3.x-dev → v4.x-dev2025-11-30

PHP version history (3 changes)v1.1.3PHP &gt;=5.3.0

v3.2.11PHP &gt;=7.4

v4.x-devPHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![mevdschee](https://avatars.githubusercontent.com/u/1288217?v=4)](https://github.com/mevdschee "mevdschee (358 commits)")[![jhvanderschee](https://avatars.githubusercontent.com/u/13737508?v=4)](https://github.com/jhvanderschee "jhvanderschee (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mintyphp-core/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M829](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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