{"id":15011324,"url":"https://github.com/netfloex/simple-php-site","last_synced_at":"2026-03-09T18:34:03.004Z","repository":{"id":113860418,"uuid":"306682403","full_name":"Netfloex/Simple-PHP-Site","owner":"Netfloex","description":"Simple php site with routing and layout support","archived":false,"fork":false,"pushed_at":"2020-10-24T11:59:22.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T22:43:47.408Z","etag":null,"topics":["layout","less","lesscss","php","routing"],"latest_commit_sha":null,"homepage":"https://php.samtaen.nl","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/Netfloex.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":"2020-10-23T15:55:43.000Z","updated_at":"2020-10-27T19:14:05.000Z","dependencies_parsed_at":"2023-07-14T01:01:55.150Z","dependency_job_id":null,"html_url":"https://github.com/Netfloex/Simple-PHP-Site","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"f40775c4e9850be0e35a53b9be55fff43a88fb0c"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netfloex%2FSimple-PHP-Site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netfloex%2FSimple-PHP-Site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netfloex%2FSimple-PHP-Site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netfloex%2FSimple-PHP-Site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Netfloex","download_url":"https://codeload.github.com/Netfloex/Simple-PHP-Site/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307333,"owners_count":20270256,"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":["layout","less","lesscss","php","routing"],"created_at":"2024-09-24T19:40:40.892Z","updated_at":"2025-12-11T19:02:55.891Z","avatar_url":"https://github.com/Netfloex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple PHP Site\n## Features\n* Layout - [Configurable here](views/layout.php)\n* [Less](https://lesscss.org) - [Configurable here](less/index.less)\n* Custom directory names - [Configurable here](config/paths.json)\n* Very basic routing - [Configurable here](config/pages.json)\n\n\n## How To install\n```\ncd /var/www/\ngit clone https://github.com/Netfloex/Simple-PHP-Site.git *dirname*\n```\n\u003e If you use apache\n```\nnano /etc/apache2/sites-enabled/simple.conf\n\n\u003cVirtualHost *:80\u003e\n        ServerName *host*\n        DocumentRoot \"/var/www/*dirname*/public\"\n\u003c/VirtualHost\u003e\n# To allow rewriting to the router\n\u003cDirectory /var/www/*dirname*/public\u003e\n  AllowOverride All\n  allow from all\n  Options +Indexes\n\u003c/Directory\u003e\n```\n## Getting started\n* To change the layout of your site (basic html structure for every page) you can edit the file contents in [views/layout.php](views/layout.php).\n* The landing page is easily editable in [views/index.php](views/index.php), this page will inherit from the layout.\n* To style your page, dont edit _public/css/app.css_, this file is automatically generated. Instead you can edit [less/index.less](less/index.less).\n* To use multiple stylesheets you can import them in your [less/index.less](less/index.less) by using `@import 'file'`.\n* To add or change existing routes you can edit the JSON config in [config/pages.json](config/pages.json).\n## Routes\n```js\n// config/pages.json\n{\n    \"/\": { // Landing page\n        \"title\": \"Main\", // The title of the page\n        \"doc\": \"index\" // views/index.php\n    },\n    \"mypage\": { // Add your own! \n        \"title\": \"Jo gamer\" // If you dont specify the document property it automatically looks for \"views/mypage.php\"\n    },\n    \"notFound\": { // This page is used for a 404 error\n        \"title\": \"404, not found\",\n        \"doc\": \"404\"\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetfloex%2Fsimple-php-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetfloex%2Fsimple-php-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetfloex%2Fsimple-php-site/lists"}