{"id":28958701,"url":"https://github.com/mehah/slight","last_synced_at":"2025-06-23T23:05:38.034Z","repository":{"id":57053270,"uuid":"138051865","full_name":"mehah/Slight","owner":"mehah","description":"Framework REST for PHP","archived":false,"fork":false,"pushed_at":"2018-07-17T00:05:00.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T01:11:27.124Z","etag":null,"topics":["api","authentication","framework","framework-php","light","mvc","php","php-framework","php-library","rest","restful","router","validation"],"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/mehah.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}},"created_at":"2018-06-20T15:30:18.000Z","updated_at":"2018-07-17T00:05:01.000Z","dependencies_parsed_at":"2022-08-24T04:11:27.077Z","dependency_job_id":null,"html_url":"https://github.com/mehah/Slight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mehah/Slight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehah%2FSlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehah%2FSlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehah%2FSlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehah%2FSlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehah","download_url":"https://codeload.github.com/mehah/Slight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehah%2FSlight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261571501,"owners_count":23178766,"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":["api","authentication","framework","framework-php","light","mvc","php","php-framework","php-library","rest","restful","router","validation"],"created_at":"2025-06-23T23:05:32.594Z","updated_at":"2025-06-23T23:05:38.022Z","avatar_url":"https://github.com/mehah.png","language":"PHP","readme":"# Slight Framework\n\nSlight is an MVC framework that will assist you in the development of rest applications, containing tools for routing, authentication and validation for data models.\n\n## Installation\n\nYou can use an already ready structure that is found here: **[Sample Project](https://github.com/mehah/Slight-project)**\n\nOr\n\nIf you want to build your own structure, just sweat the [Composer](https://getcomposer.org/).\n```shell\ncomposer require slight.mvc/framework:dev-master\n```\n\n#### Project Structure (folders)\n                \n+ src\n    * config.php\n    * router.php\n\n+ vendor\n    + ...\n+ view\n    * index.html\n \u003cdetails\u003e\u003csummary\u003e.htaccess\u003c/summary\u003e\n\u003cp\u003e\n\n```.htaccess\nRewriteEngine On\nRewriteCond %{REQUEST_URI} ^((?!\\.).)*$ [NC]\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteRule ^(.*)$ index.php?$url=$1 [QSA,L]\n\nRewriteEngine On\nRewriteCond %{REQUEST_URI} \\.*$\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteRule ^(.*)$ view/$1 [QSA,L]\n\nRewriteEngine on\nRewriteCond %{REQUEST_URI} (/src/|/vendor/|/build/)\nRewriteRule ^.*$ /404 [L]\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n \u003cdetails\u003e\u003csummary\u003eindex.php\u003c/summary\u003e\n\u003cp\u003e\n\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\nSlight\\Core::init();\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\nLicense\n-------\n\nSlight is licensed under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehah%2Fslight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehah%2Fslight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehah%2Fslight/lists"}