{"id":30766718,"url":"https://github.com/musonacodex/marvic","last_synced_at":"2026-01-20T16:25:59.806Z","repository":{"id":312996339,"uuid":"1045161046","full_name":"musonacodex/marvic","owner":"musonacodex","description":"The Minimalist and Independent PHP Web Application Framework","archived":false,"fork":false,"pushed_at":"2025-10-27T14:20:10.000Z","size":979,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-27T16:10:27.435Z","etag":null,"topics":["framework","http","php","routing"],"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/musonacodex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2025-08-26T18:37:16.000Z","updated_at":"2025-10-27T14:20:05.000Z","dependencies_parsed_at":"2025-09-20T10:04:08.974Z","dependency_job_id":"917bdf0c-a200-4d8b-b0d3-d5088068c7b2","html_url":"https://github.com/musonacodex/marvic","commit_stats":null,"previous_names":["musonacodex/marvic"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/musonacodex/marvic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musonacodex%2Fmarvic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musonacodex%2Fmarvic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musonacodex%2Fmarvic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musonacodex%2Fmarvic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/musonacodex","download_url":"https://codeload.github.com/musonacodex/marvic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musonacodex%2Fmarvic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: 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":["framework","http","php","routing"],"created_at":"2025-09-04T19:32:50.129Z","updated_at":"2026-01-20T16:25:59.795Z","avatar_url":"https://github.com/musonacodex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marvic - The Faster and Minimalist PHP Web Application Framework\n------------------------------------------------------------------\n\n## Table of Contents\n\n## What is Marvic?\n\n**Marvic** is a minimalist and flexible PHP web application framework with expressive and elegant syntax. This mini framewrok provides a set of features for building of a web application easily. It simplifies the server-side development or server-side application by offering an east to use API for routing, middlewares and HTTP utilities, view engines, and so on.\n\nMarvic is based on [Express.js](https://expressjs.com/) and [Koa](https://koajs.com/), so if you have nearness with one of those framework, use Marvic will be easy for you.\n\n## Marvic Application Examples\n\nBuilding a Marvic application is very easy, you need do only 3 steps:\n\n* Create a new Marvic application instance.\n* Define all needed routes.\n* Run the application.\n\nSee the example below:\n\n```php\n$app = Marvic::application();\n\n$app-\u003eget('/', function($request, $response) {\n\t$response-\u003esend('\u003ch1\u003eHello! Welcome to Marvic!\u003c/h1\u003e');\n});\n\n$app-\u003erun();\n```\n\n## Features\n\n* **Routing**: allows to define routes and handle HTTP requests for your web application or RESTful API.\n\n```php\n$app-\u003eget('/users', function($request, $response) {\n\treturn 'List of users';\n});\n```\n\n* **Middlewares**: You can install middleware functions to access request, response, error message and other middlewares. You can use it for user authentication, error handling, data processing and logging for example.\n\n```php\n$app-\u003euse(function($error, $request, $response, $next) {\n\tif ( $error !== 'notFound' ) return $next();\n\t$response-\u003esendStatus(404, '\u003ch1\u003e404 Not Found\u003c/h1\u003e');\n});\n```\n\n* **View Engine Functions**: Use your favorite template engine for your project (BladeOne, Twig, Plates, and so on). With him, you cand render templates easily. The default template engine is Plates.\n\n```php\n$twig = new Twig\\Environment(new Twig\\Loader\\FilesystemLoader('./view'));\n\n$app-\u003eengine('view', fn($view, $data) =\u003e $twig-\u003erender($view, $data));\n\n$app-\u003eget('/', function($request, $response) {\n\t$response-\u003erender('index.html', ['name' =\u003e 'John']);\n});\n```\n\n## Why should I use?\n\nMarvic is a simple PHP framework and can be quite useful for web application or API building. But the decision depends of the project size, your requirements, mantainment and level of control ehat you want to have. By while, Marvic is useful for:\n\n* **Small or Middle Projects**: You don't need a robust framework as Laravel or Symfony, but you also don't want do \"everything on the nail\". You can use to build small APIs, landing pages, and so on.\n* **Prototype or MVP (Minimum Viable Product)**: Allows to create fast routes, cope with requests/responses, organize folders, and have a weightless structure.\n* **RESTful APIs or Specifical Services**: If your web application will be a backend for frontends (SPA, mobile, etc), simple frameworks like Marvic wont be ideals because performance and low complexity.\n* **Learning**: If you are beginning and you want to understand how to work concepts like routing, controllers, middlewares HTTP requests and responses, etc, Marvic can help you.\n* **When the performance is priority**: Big frameworks add overhead (extra layers and dependences). If the project need be fast, use Marvic can be better.\n\n## Requeriments\n\n* PHP 8.1 or higher.\n\n## Get Started\n\n## Documentation\n\nSee the API Documentation [Click Here](./docs/api/v1.x.md)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusonacodex%2Fmarvic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusonacodex%2Fmarvic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusonacodex%2Fmarvic/lists"}