{"id":20259813,"url":"https://github.com/carstenwindler/frameworkless","last_synced_at":"2025-04-11T01:32:30.571Z","repository":{"id":49958970,"uuid":"371817419","full_name":"carstenwindler/frameworkless","owner":"carstenwindler","description":"An example about how to code a simple webservice in PHP without the use of frameworks. ","archived":false,"fork":false,"pushed_at":"2023-10-10T20:35:45.000Z","size":106,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T22:42:00.569Z","etag":null,"topics":["frameworkless","php","webservice"],"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/carstenwindler.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":"2021-05-28T21:00:59.000Z","updated_at":"2023-11-13T08:45:34.000Z","dependencies_parsed_at":"2022-08-30T07:01:28.778Z","dependency_job_id":null,"html_url":"https://github.com/carstenwindler/frameworkless","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstenwindler%2Fframeworkless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstenwindler%2Fframeworkless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstenwindler%2Fframeworkless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstenwindler%2Fframeworkless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carstenwindler","download_url":"https://codeload.github.com/carstenwindler/frameworkless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248325283,"owners_count":21084901,"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":["frameworkless","php","webservice"],"created_at":"2024-11-14T11:16:44.474Z","updated_at":"2025-04-11T01:32:30.550Z","avatar_url":"https://github.com/carstenwindler.png","language":"PHP","readme":"# Frameworkless Webservice\n\nThis repository is an example about how to code a simple webservice in PHP without the use of frameworks. \n\n\u003e Please note, this is not meant to be used in production. Use it on your own risk.\n\n## V4 - adding tests and code quality tools\n\nVersion 4 is finally adding basic functional API tests and Code Quality tools.\n\n### Installation\n\n```\ndocker-compose up -d\nmake composer-install\nmake mysql-import build/mysql/database.sql\n```\n\n### Usage \n```\ncurl -u username:password -X GET http://localhost:8080/products \ncurl -u username:password -X GET http://localhost:8080/products/1\ncurl -u username:password -X POST localhost:8080/products -d '{ \"description\": \"new item\" }' -H \"Content-Type: application/json\"\ncurl -u username:password -X PUT localhost:8080/products/2 -d '{ \"description\": \"updated\" }' -H \"Content-Type: application/json\"\ncurl -u username:password -X DELETE localhost:8080/products/2\n```\n\n### Tests\n\n* `make test` to execute the default test suite.\n\n### Code Quality\n\n* `make cs` - run Code Sniffer\n* `make csfix` - run Code Sniffer Fixer\n* `make analyze` - run Code Analyzer\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarstenwindler%2Fframeworkless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarstenwindler%2Fframeworkless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarstenwindler%2Fframeworkless/lists"}