mintyphp / core
Installs: 1 206
Dependents: 2
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 5
Open Issues: 2
pkg:composer/mintyphp/core
Requires
- php: >=7.4
- ext-memcache: *
- ext-mysqli: *
Requires (Dev)
- dev-main
- v4.x-dev
- v3.2.24
- v3.2.23
- v3.2.22
- v3.2.21
- v3.2.20
- v3.2.19
- v3.2.18
- v3.2.17
- v3.2.16
- v3.2.15
- v3.2.14
- v3.2.13
- v3.2.12
- v3.2.11
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.2
- v3.0.1
- v3.0.0
- v2.5.25
- v2.5.24
- v2.5.23
- v2.5.22
- v2.5.21
- v2.5.20
- v2.5.19
- v2.5.18
- v2.5.17
- v2.5.16
- v2.5.15
- v2.5.14
- v2.5.13
- v2.5.12
- v2.5.11
- v2.5.10
- v2.5.9
- v2.5.8
- v2.5.7
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- dev-001-debugger-filesystem
This package is auto-updated.
Last update: 2025-12-08 00:11:35 UTC
README
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
- PHP: >= 8.0
- Extensions:
ext-memcached: Required for caching functionalityext-mysqli: Required for database operations
Installation
Install MintyPHP Core via Composer:
composer require mintyphp/core
Development
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
The wrapper classes in src/ are auto-generated. Do not manually edit these files as your changes will be overwritten.
Making Changes
- Edit Core Classes: Make all changes to files in
src/Core/directory - 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
# 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
Run All Tests
./test.sh
Or directly with PHPUnit:
vendor/bin/phpunit tests
Run Specific Test Class
vendor/bin/phpunit tests/Core/RouterTest.php
Run Specific Test Method
vendor/bin/phpunit --filter testAdmin tests/Core/RouterTest.php
Run with Coverage (if Xdebug is installed)
vendor/bin/phpunit --coverage-html coverage
Static Analysis
Run PHPStan for static code analysis:
vendor/bin/phpstan analyse
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