{"id":28413342,"url":"https://github.com/vikbert/rest-selektion-silex","last_synced_at":"2025-07-27T07:08:35.250Z","repository":{"id":146599761,"uuid":"46446562","full_name":"vikbert/rest-selektion-silex","owner":"vikbert","description":"a simple rest api selekton with silex framework","archived":false,"fork":false,"pushed_at":"2015-11-18T20:48:37.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T20:49:11.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vikbert.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":"2015-11-18T20:48:32.000Z","updated_at":"2015-11-18T20:48:37.000Z","dependencies_parsed_at":"2023-04-13T04:55:45.690Z","dependency_job_id":null,"html_url":"https://github.com/vikbert/rest-selektion-silex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vikbert/rest-selektion-silex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Frest-selektion-silex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Frest-selektion-silex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Frest-selektion-silex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Frest-selektion-silex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikbert","download_url":"https://codeload.github.com/vikbert/rest-selektion-silex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Frest-selektion-silex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320257,"owners_count":24068527,"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-07-27T02:00:11.917Z","response_time":82,"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":[],"created_at":"2025-06-03T04:33:57.912Z","updated_at":"2025-07-27T07:08:35.230Z","avatar_url":"https://github.com/vikbert.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Silex Simple REST Selekton\n=============================\n\nA simple silex skeleton application for writing RESTful API.\n\n**This project wants to be a starting point to writing scalable and maintainable REST api with Silex PHP micro-framework**\n\n\n####How do I run it?\nAfter download the last version, from the root folder of the project, run the following commands to install the php dependencies, import some data, and run a local php server.\n\nYou need at least php **5.4.*** with **SQLite extension** enabled and **Composer**\n\n    composer install\n    sqlite3 app.db \u003c resources/sql/schema.sql\n    php -S 0:9001 -t web/\n\nYou can install the project also as a composer project\n\n\t\tcomposer create-project vesparny/silex-simple-rest\n\nYour api is now available at http://localhost:9001/api/v1.\n\n####Run tests\nSome tests were written, and all CRUD operations are fully tested :)\n\nFrom the root folder run the following command to run tests.\n\n    vendor/bin/phpunit\n\n\n####What you will get\nThe api will respond to\n\n\tGET  -\u003e   http://localhost:9001/api/v1/notes\n\tPOST -\u003e   http://localhost:9001/api/v1/notes\n\tPUT -\u003e   http://localhost:9001/api/v1/notes/{id}\n\tDELETE -\u003e http://localhost:9001/api/v1/notes/{id}\n\nYour request should have 'Content-Type: application/json' header.\nYour api is CORS compliant out of the box, so it's capable of cross-domain communication.\n\nTry with curl:\n\n\t#GET\n\tcurl http://localhost:9001/api/v1/notes -H 'Content-Type: application/json' -w \"\\n\"\n\n\t#POST (insert)\n\tcurl -X POST http://localhost:9001/api/v1/notes -d '{\"note\":\"Hello World!\"}' -H 'Content-Type: application/json' -w \"\\n\"\n\n\t#PUT (update)\n\tcurl -X PUT http://localhost:9001/api/v1/notes/1 -d '{\"note\":\"Uhauuuuuuu!\"}' -H 'Content-Type: application/json' -w \"\\n\"\n\n\t#DELETE\n\tcurl -X DELETE http://localhost:9001/api/v1/notes/1 -H 'Content-Type: application/json' -w \"\\n\"\n\n####What's under the hood\nTake a look at the source code, it's self explanatory :)\nMore documentation and info about the code will be available soon.\n\nUnder the resources folder you can find a .htaccess file to put the api in production.\n\nsee LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikbert%2Frest-selektion-silex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikbert%2Frest-selektion-silex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikbert%2Frest-selektion-silex/lists"}