{"id":37235113,"url":"https://github.com/zapheus/zapheus","last_synced_at":"2026-01-15T04:00:40.016Z","repository":{"id":57089383,"uuid":"114205424","full_name":"zapheus/zapheus","owner":"zapheus","description":"An independent and framework-friendly PHP micro-framework.","archived":false,"fork":false,"pushed_at":"2020-10-05T03:04:12.000Z","size":317,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T16:52:29.050Z","etag":null,"topics":["interoperable","php-framework","php-library","zapheus"],"latest_commit_sha":null,"homepage":"https://roug.in/zapheus/","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/zapheus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-14T05:12:25.000Z","updated_at":"2020-10-05T03:04:14.000Z","dependencies_parsed_at":"2022-08-20T16:00:47.032Z","dependency_job_id":null,"html_url":"https://github.com/zapheus/zapheus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zapheus/zapheus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapheus%2Fzapheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapheus%2Fzapheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapheus%2Fzapheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapheus%2Fzapheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zapheus","download_url":"https://codeload.github.com/zapheus/zapheus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapheus%2Fzapheus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["interoperable","php-framework","php-library","zapheus"],"created_at":"2026-01-15T04:00:39.165Z","updated_at":"2026-01-15T04:00:39.997Z","avatar_url":"https://github.com/zapheus.png","language":"PHP","readme":"# Zapheus\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]][link-license]\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nInspired from PHP frameworks of all shape and sizes, Zapheus is a web application framework with a goal to be easy to use, educational, and fully extensible to the core. Whether a simple API project or a full enterprise application, Zapheus will try to adapt it according to developer's needs.\n\n``` php\n// Displays a \"Hello World\" text.\n\nrequire 'vendor/autoload.php';\n\n// Initializes the router application\n$app = new Zapheus\\Coordinator;\n\n// Creates a HTTP route of GET /\n$app-\u003eget('/', function ()\n{\n    return 'Hello world!';\n});\n\n// Handles the server request\necho $app-\u003erun();\n```\n\n## Installation\n\nInstall `Zapheus` via [Composer](https://getcomposer.org/):\n\n``` bash\n$ composer require zapheus/zapheus\n```\n\n## Basic Usage\n\n### Using `Coordinator`\n\n``` php\nrequire 'vendor/autoload.php';\n\n// Initializes the router application\n$app = new Zapheus\\Coordinator;\n\n// Creates a HTTP route of GET /\n$app-\u003eget('/', function ()\n{\n    return 'Hello world!';\n});\n\n// Handles the server request\necho $app-\u003erun();\n```\n\n### Using `Middlelayer`\n\n``` php\nrequire 'vendor/autoload.php';\n\n// Initializes the middleware application\n$app = new Zapheus\\Middlelayer;\n\n// Initializes the router instance\n$router = new Zapheus\\Routing\\Router;\n\n// Creates a HTTP route of GET /\n$router-\u003eget('/', function ()\n{\n    return 'Hello world!';\n});\n\n// Pipes the router middleware into the application\n$app-\u003epipe(function ($request, $next) use ($router)\n{\n    // Returns the request attribute value for a route\n    $attribute = Zapheus\\Application::ROUTE_ATTRIBUTE;\n\n    // Returns the path from the URI instance\n    $path = $request-\u003euri()-\u003epath();\n\n    // Returns the current HTTP method from the $_SERVER\n    $method = $request-\u003emethod();\n\n    // Creates a new Routing\\DispatcherInterface instance\n    $dispatcher = new Zapheus\\Routing\\Dispatcher($router);\n\n    // Dispatches the router against the current request\n    $route = $dispatcher-\u003edispatch($method, $path);\n\n    // Sets the route attribute into the request in order to be\n    // called inside the Application instance and return the response.\n    $request = $request-\u003epush('attributes', $route, $attribute);\n\n    // Go to the next middleware, if there are any\n    return $next-\u003ehandle($request);\n});\n\n// Handles the server request\necho $app-\u003erun();\n```\n\n### Run the application using PHP's built-in web server:\n\n``` bash\n$ php -S localhost:8000\n```\n\nOpen your web browser and go to [http://localhost:8000](http://localhost:8000).\n\n## Features\n\n### No dependencies\n\nZapheus takes no dependencies from other frameworks or libraries. Each component is built with inspiration from the existing popular web frameworks to give developers the best development experience.\n\n### Extensible\n\nAll of Zapheus' classes have their own easy to understand interfaces. It enables developers to extend or optimize the core functionalities easily.\n\n### Interoperable\n\nEven though Zapheus doesn't have dependencies from other libraries, it does have [bridge packages](https://github.com/zapheus?utf8=%E2%9C%93\u0026q=bridge) to integrate your chosen libraries easily within the framework. These include the [PHP Standards Recommendations](https://www.php-fig.org/psr/) (PSR) like [PSR-07](https://github.com/zapheus/psr-07-bridge) and [PSR-11](https://github.com/zapheus/psr-11-bridge).\n\n``` php\n// Converts a Zend Diactoros instance (a PSR-07 implementation)\n// into a Zapheus HTTP request using the PSR-07 Bridge package\n\nuse Zapheus\\Bridge\\Psr\\Zapheus\\Request;\nuse Zend\\Diactoros\\ServerRequestFactory;\n\n// Psr\\Http\\Message\\ServerRequestInterface\n$psr = ServerRequestFactory::fromGlobals();\n\n// Zapheus\\Http\\Message\\RequestInterface\n$request = new Request($psr);\n```\n\n### Framework-friendly\n\nFrameworks like Laravel and Symfony have their way of integrating packages into their own ecosystem. With that, Zapheus will try to get them both work in the same application in order for the developers to utilize framework-specific packages to their arsenal.\n\n``` php\n// Registers a third-party Laravel Service Provider\n// into Zapheus using the Illuminate Bridge package\n\nuse Acme\\Providers\\AuthServiceProvider;\nuse Acme\\Providers\\RoleServiceProvider;\nuse Illuminate\\Container\\Container;\nuse Zapheus\\Bridge\\Illuminate\\IlluminateProvider;\nuse Zapheus\\Container\\Container as ZapheusContainer;\n\n// A collection of Laravel Service Providers\n$providers = array(AuthServiceProvider::class, RoleServiceProvider::class);\n\n// Include the providers in the bridge instance\n$provider = new IlluminateProvider($providers);\n\n// Registers the bindings into a container\n$container = $provider-\u003eregister(new ZapheusContainer);\n\n// Returns the Illuminate\\Container\\Container\n$laravel = $container-\u003eget(Container::class);\n```\n\n## Changelog\n\nPlease see [CHANGELOG][link-changelog] for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Credits\n\n- [All contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE][link-license] for more information.\n\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/zapheus/zapheus.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/zapheus/zapheus.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/zapheus/zapheus.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/zapheus/zapheus/master.svg?style=flat-square\n[ico-version]: https://img.shields.io/packagist/v/zapheus/zapheus.svg?style=flat-square\n\n[link-changelog]: https://github.com/zapheus/zapheus/blob/master/CHANGELOG.md\n[link-code-quality]: https://scrutinizer-ci.com/g/zapheus/zapheus\n[link-contributors]: https://github.com/zapheus/zapheus/contributors\n[link-downloads]: https://packagist.org/packages/zapheus/zapheus\n[link-license]: https://github.com/zapheus/zapheus/blob/master/LICENSE.md\n[link-packagist]: https://packagist.org/packages/zapheus/zapheus\n[link-scrutinizer]: https://scrutinizer-ci.com/g/zapheus/zapheus/code-structure\n[link-travis]: https://travis-ci.org/zapheus/zapheus","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapheus%2Fzapheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzapheus%2Fzapheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapheus%2Fzapheus/lists"}