{"id":45999029,"url":"https://github.com/mintyphp/core","last_synced_at":"2026-02-28T22:01:38.769Z","repository":{"id":33194707,"uuid":"154689516","full_name":"mintyphp/core","owner":"mintyphp","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-04T22:46:45.000Z","size":699,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-08T10:15:11.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mintyphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-10-25T14:54:52.000Z","updated_at":"2026-01-04T22:46:48.000Z","dependencies_parsed_at":"2023-01-14T23:51:44.182Z","dependency_job_id":null,"html_url":"https://github.com/mintyphp/core","commit_stats":null,"previous_names":[],"tags_count":104,"template":false,"template_full_name":null,"purl":"pkg:github/mintyphp/core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintyphp%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintyphp%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintyphp%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintyphp%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mintyphp","download_url":"https://codeload.github.com/mintyphp/core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintyphp%2Fcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-28T22:01:35.635Z","updated_at":"2026-02-28T22:01:38.753Z","avatar_url":"https://github.com/mintyphp.png","language":"PHP","readme":"# MintyPHP Core\n\nA lightweight, minimalist PHP framework providing essential components for modern web applications.\n\nMintyPHP will run on any Linux web server running PHP + MariaDB + Memcache\n\n## Requirements\n\n- **PHP**: \u003e= 8.0\n- **Extensions**:\n  - `ext-memcached`: Required for caching functionality\n  - `ext-mysqli`: Required for database operations\n\n## Installation\n\nInstall MintyPHP Core via Composer:\n\n```bash\ncomposer require mintyphp/core\n```\n\n## Development\n\n### Project Structure\n\nThe project follows a dual-layer architecture:\n\n- **`src/Core/`**: Contains the core implementation classes (e.g., `Core/Template.php`, `Core/Router.php`)\n- **`src/`**: Contains auto-generated static wrapper classes (e.g., `Template.php`, `Router.php`)\n\n### Important: Do NOT Edit Generated Classes\n\n**The wrapper classes in `src/` are auto-generated.** Do not manually edit these files as your changes will be overwritten.\n\n### Making Changes\n\n1. **Edit Core Classes**: Make all changes to files in `src/Core/` directory\n2. **Regenerate Wrappers**: After modifying core classes, regenerate the wrapper classes:\n\n```bash\nphp generate_wrappers.php\n```\n\nThis script automatically generates static wrapper classes that provide a convenient facade pattern for the instance-based Core classes.\n\n### Development Workflow\n\n```bash\n# 1. Make changes to core classes\nnano src/Core/Template.php\n\n# 2. Regenerate wrapper classes\nphp generate_wrappers.php\n\n# 3. Run tests to verify changes\n./test.sh\n\n# 4. Run static analysis (optional)\nvendor/bin/phpstan analyse\n```\n\n## Running Tests\n\n### Run All Tests\n\n```bash\n./test.sh\n```\n\nOr directly with PHPUnit:\n\n```bash\nvendor/bin/phpunit tests\n```\n\n### Run Specific Test Class\n\n```bash\nvendor/bin/phpunit tests/Core/RouterTest.php\n```\n\n### Run Specific Test Method\n\n```bash\nvendor/bin/phpunit --filter testAdmin tests/Core/RouterTest.php\n```\n\n### Run with Coverage (if Xdebug is installed)\n\n```bash\nvendor/bin/phpunit --coverage-html coverage\n```\n\n## Static Analysis\n\nRun PHPStan for static code analysis:\n\n```bash\nvendor/bin/phpstan analyse\n```\n\n## Components\n\nMintyPHP Core provides the following components:\n\n- **Router**: URL routing and request handling\n- **Template**: Template rendering engine\n- **DB**: Database abstraction layer\n- **Auth**: Authentication management\n- **Session**: Session handling\n- **Cache**: Caching mechanisms\n- **Firewall**: Security and access control\n- **Orm**: Object-relational mapping\n- **Buffer**: Output buffering\n- **Curl**: HTTP client wrapper\n- **Token**: Token generation and validation\n- **Totp**: Time-based one-time password support\n- **I18n**: Internationalization support\n- **NoPassAuth**: Passwordless authentication\n- **Analyzer**: Code analysis utilities\n- **Debugger**: Debugging and profiling tools\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintyphp%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmintyphp%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintyphp%2Fcore/lists"}