{"id":20375333,"url":"https://github.com/cba85/icarus-prototype","last_synced_at":"2025-06-24T10:36:52.188Z","repository":{"id":71449111,"uuid":"127927601","full_name":"cba85/icarus-prototype","owner":"cba85","description":"📑 Fast prototyping for future PHP applications","archived":false,"fork":false,"pushed_at":"2018-05-14T22:30:25.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:44:39.428Z","etag":null,"topics":["fastroute","php","prototype","twig"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cba85.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-04-03T15:15:48.000Z","updated_at":"2023-02-17T17:05:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b2e4aea-f922-419a-95a6-e1f1aa654637","html_url":"https://github.com/cba85/icarus-prototype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cba85/icarus-prototype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Ficarus-prototype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Ficarus-prototype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Ficarus-prototype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Ficarus-prototype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cba85","download_url":"https://codeload.github.com/cba85/icarus-prototype/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Ficarus-prototype/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261652878,"owners_count":23190357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["fastroute","php","prototype","twig"],"created_at":"2024-11-15T01:29:56.957Z","updated_at":"2025-06-24T10:36:52.166Z","avatar_url":"https://github.com/cba85.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Icarus prototype\n\nFast prototyping for future PHP applications.\n\nA simple PHP application configured with FastRoute, a simple and fast router, and template engines.\n\nCreate a prototype of the interface of your future application  using your favorite template render engine: Twig or Laravel Blade are actually supported.\n\nWhen it's done, just move your template files in your favorite framework: Symfony, Laravel, SlimPHP...And start development!\n\n## Dependencies\n\n- [FastRoute](https://github.com/nikic/FastRoute)\n- [Twig](https://twig.symfony.com)\n- [Laravel Blade (jenssegers)](https://github.com/jenssegers/blade)\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require cba85/icarus-prototype\n```\n\n## Configuration\n\nChoose the template render engine you will use in your project (the template engine of the framework you have choose for your project).\n\nIn `config.php` file, specify the template engine you want to use (Twig or Laravel Blade are actually supported):\n\n```php\n'engine' =\u003e 'twig', // or 'engine' =\u003e 'blade'\n```\n\n## Usage\n\nIn `src/Controller.php` file, an `index` method for `/` is created. Just use the render function of the template engine you previously chose:\n\n```php\npublic function index() {\n    // Twig\n    echo $this-\u003eview-\u003erender('index.html', []);\n    // Laravel Blade\n    //echo $this-\u003eview-\u003emake('index', []);\n}\n```\n\nFor more information about the rendering of template files, see:\n\n- [Twig documentation](https://twig.symfony.com/doc/2.x/api.html)\n- [Laravel Blade documentation](https://github.com/jenssegers/blade)\n\n## Informations\n\n- Cache files are located in `tmp/` folder. You can change this folder in `config.php` file.\n- It's possible to disable caching in Twig in `config.php` file:\n    ```php\n    'cache' =\u003e false,\n    ```\n- Twig and Blade views example folder are located in `views/example/`.\n\n## Routes\n\nCreate routes in `src/routes.php` file:\n\n```php\n$r-\u003eaddRoute('GET', '/', [new App\\Controller($view), 'index']);\n```\n\nSee [FastRoute documentation](https://github.com/nikic/FastRoute) for more information.\n\n## Testing\n\nTests unavailable.\n\n## Credits\n\n- [Clément Barbaza](https://github.com/cba85)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Ficarus-prototype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcba85%2Ficarus-prototype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Ficarus-prototype/lists"}