{"id":24603804,"url":"https://github.com/annimon-tutorials/php-unframework-template","last_synced_at":"2025-03-18T08:43:22.309Z","repository":{"id":204035173,"uuid":"315710821","full_name":"annimon-tutorials/php-unframework-template","owner":"annimon-tutorials","description":"Framework-less template for simple sites. Source code for tutorial","archived":false,"fork":false,"pushed_at":"2020-11-24T18:51:00.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T15:16:06.574Z","etag":null,"topics":["fastroute","framework-less","php","tutorial","twig"],"latest_commit_sha":null,"homepage":"https://annimon.com/article/3959","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/annimon-tutorials.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-11-24T17:50:14.000Z","updated_at":"2020-12-08T21:25:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba560ca1-4ac4-4c8a-ab61-e0e376f49e64","html_url":"https://github.com/annimon-tutorials/php-unframework-template","commit_stats":null,"previous_names":["annimon-tutorials/php-unframework-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annimon-tutorials%2Fphp-unframework-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annimon-tutorials%2Fphp-unframework-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annimon-tutorials%2Fphp-unframework-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annimon-tutorials%2Fphp-unframework-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/annimon-tutorials","download_url":"https://codeload.github.com/annimon-tutorials/php-unframework-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244188428,"owners_count":20412977,"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","framework-less","php","tutorial","twig"],"created_at":"2025-01-24T15:16:13.842Z","updated_at":"2025-03-18T08:43:22.290Z","avatar_url":"https://github.com/annimon-tutorials.png","language":"PHP","readme":"# php unframework template\n\nFast and lightweight framework-less template for simple sites. Uses [FastRoute](https://github.com/nikic/FastRoute), [Twig](https://twig.symfony.com/) and [Pimple](https://pimple.symfony.com/).\n\nDemo: https://projects.annimon.com/\n\n## Requirements\n\nphp 7.4+\n\n\n## Install\n\n```bash\ncomposer install\nchmod -R 777 cache\ncd src \u0026\u0026 npm install\nnpm run dist\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eNginx config\u003c/summary\u003e\n\n```nginx\nserver {\n  listen 80;\n  listen [::]:80;\n  listen 443 ssl;\n\n  root /var/www/app/public;\n  index index.php index.html index.htm;\n  server_name app.site;\n  autoindex off;\n\n  location / {\n    try_files $uri $uri/ /index.php$is_args$args;\n  }\n  location ~ \\.php$ {\n    include snippets/fastcgi-php.conf;\n    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;\n  }\n  location ~* ^.+\\.(svg|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {\n    access_log off;\n    expires 30d;\n  }\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eApache config\u003c/summary\u003e\n\n```xml\n\u003cVirtualHost *:80\u003e\n  ServerName app.site\n  ServerAdmin admin@app.site\n  DocumentRoot /var/www/app/public\n\n  \u003cDirectory /var/www/app\u003e\n    Options Indexes FollowSymLinks MultiViews\n    AllowOverride None\n    Require all granted\n  \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\u003c/details\u003e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannimon-tutorials%2Fphp-unframework-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannimon-tutorials%2Fphp-unframework-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannimon-tutorials%2Fphp-unframework-template/lists"}