{"id":17295624,"url":"https://github.com/franzwilding/last","last_synced_at":"2025-10-04T02:11:12.733Z","repository":{"id":40138364,"uuid":"144546061","full_name":"franzwilding/last","owner":"franzwilding","description":"Zero Configuration, Static Site Generator for any Symfony project.","archived":false,"fork":false,"pushed_at":"2018-08-31T16:54:42.000Z","size":49,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-15T06:49:54.428Z","etag":null,"topics":["php","ssg","static-site-generator","symfony"],"latest_commit_sha":null,"homepage":"","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/franzwilding.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}},"created_at":"2018-08-13T07:44:36.000Z","updated_at":"2024-05-05T00:04:12.000Z","dependencies_parsed_at":"2022-06-26T19:32:25.069Z","dependency_job_id":null,"html_url":"https://github.com/franzwilding/last","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/franzwilding/last","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzwilding%2Flast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzwilding%2Flast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzwilding%2Flast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzwilding%2Flast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franzwilding","download_url":"https://codeload.github.com/franzwilding/last/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzwilding%2Flast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254466,"owners_count":25956604,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["php","ssg","static-site-generator","symfony"],"created_at":"2024-10-15T11:10:45.832Z","updated_at":"2025-10-04T02:11:12.685Z","avatar_url":"https://github.com/franzwilding.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Last – static site generator for any Symfony project\n\n[![Build Status](https://travis-ci.org/franzwilding/last.svg?branch=master)](https://travis-ci.org/franzwilding/last)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/e9334f9657fc4a65e24c/test_coverage)](https://codeclimate.com/github/franzwilding/last/test_coverage)\n\nLast is a minimalistic static site generator for Symfony 4 applications. Once installed, Last provides a \ncommand that will simply create requests for all of your routes and dumps the result as a static file to a dist folder.\n\n## Installation\n*(A symfony/flex recipe will be created soon. )*\n\n    composer require fw/last-bundle\n    \nLast should get registered automatically to config/bundles.php. If not, add it by hand:\n\n    ...\n    Fw\\LastBundle\\FwLastBundle::class =\u003e ['all' =\u003e true],\n\n## Usage\nNow you can run the dump command and your Symfony app gets exported as static html files. \n\n    # will dump to the configured dist folder, defaults to %project%/dist\n    bin/console last:dump \n    \n    # wil dump to the given folder\n    bin/console last:dump --dist=./custom_dist_folder\n    \n## Is it production ready?\nSoon, however the following is missing yet:\n\n- [ ] Test with more real life projects\n- [ ] Provide an symfony/flex recipe\n- [ ] Automatically copy assets from public/build, public/bundles/* and other locations to dist folder after dumping\n\n## Configuration\n\n    fw_last:\n        dist_folder: '%kernel.project_dir%/dist' # this is the default dist folder, if you don't set it \n        providers:\n            static: true # Static provider is enabled per default, you can disable it here\n\n## Request providers\n\nLast runs requests against your kernel. So in order to make it work, all desired requests must be defined. To make \nthings more easy, Last comes with a request provider for all static routes (routes without mandatory placeholders). So\nyou only need to implement a custom request provider if you want to include dynamic routes like *blog/article/{id}*. A\nsimple provider could look like this: \n\n    use Fw\\LastBundle\\Router\\RouteProvider;\n\n    class YourustomProvider implements RouteProvider\n    {\n        /**\n         * {@inheritdoc}\n         */\n        public function getRoutes(): array\n        {\n            return [\n                Request::create('blog/article/1'),\n                Request::create('blog/article/2'),\n                Request::create('blog/article/3'),\n            ];\n        }\n    } \n\nAnd needs to be a tagged service, in order to make it visible for Last.\n\n    Your\\CustomBundle\\Provider\\CustomProvider:\n            tags: ['fw.last.route_provider']\n\nOf course you can inject any dependencies like an entity manager to create more advanced providers.\n\n## Troubleshooting\n\n### My links start with `http://localhost/` what should I do?\nUse `{{ path() }}` instead of `{{ url() }}` in your templates to make your urls relative.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranzwilding%2Flast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranzwilding%2Flast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranzwilding%2Flast/lists"}