GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mintyphp/core

BranchesTags
Open more actions menu

Latest commit

 

History

364 Commits
364 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
create.sql
create.sql
 
 
generate_wrappers.php
generate_wrappers.php
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml
phpunit.xml
 
 
rector.php
rector.php
 
 
test.sh
test.sh
 
 

Repository files navigation

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

  • PHP: >= 8.0
  • Extensions:
    • ext-memcached: Required for caching functionality
    • ext-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

  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

# 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

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.