{"id":20747545,"url":"https://github.com/juan-morales/silex_api","last_synced_at":"2026-04-29T09:05:06.439Z","repository":{"id":109633579,"uuid":"95464599","full_name":"juan-morales/silex_api","owner":"juan-morales","description":"Project schema to create a PHP Silex Project (REST APIs) using an Services-Controller architecture and JSON responses.","archived":false,"fork":false,"pushed_at":"2017-06-26T16:09:43.000Z","size":1731,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T13:42:09.665Z","etag":null,"topics":["controller","json","json-response","php","php-silex","service","silex","webapp"],"latest_commit_sha":null,"homepage":"http://www.jcmcv.com","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/juan-morales.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":"2017-06-26T16:02:54.000Z","updated_at":"2017-09-24T22:18:10.000Z","dependencies_parsed_at":"2023-04-01T13:20:03.487Z","dependency_job_id":null,"html_url":"https://github.com/juan-morales/silex_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juan-morales/silex_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-morales%2Fsilex_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-morales%2Fsilex_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-morales%2Fsilex_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-morales%2Fsilex_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juan-morales","download_url":"https://codeload.github.com/juan-morales/silex_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juan-morales%2Fsilex_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261479376,"owners_count":23164678,"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":["controller","json","json-response","php","php-silex","service","silex","webapp"],"created_at":"2024-11-17T08:13:38.759Z","updated_at":"2026-04-29T09:05:06.434Z","avatar_url":"https://github.com/juan-morales.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README #\n\nGeneral project schema to create a PHP Silex Project (REST APIs) using an Services-Controller architecture and JSON responses.\n\n### Main Idea ###\n\n* Having a code Schema, ready to Add Services and Controllers.\n\n* In one Controller, you may use many Service Methods.\n\n* Example:\n*\tCreate Services for Users\n*\tCreate Services for Sessions\n\n*\tThen you can have Controllers, that use the services to manage users and sessions and another ones depending on the pourpuse of the Controller.\n\n### What is this repo for? ###\n\n* Project Schema in order to create a Services-Controller driven REST API webapp using PHP/Silex.\n* JSON responses.\n* Version 1.0\n\n### Test Routes - They are all POST URLs\n+ Hello World   -parameter: name\n\u003e \u003e ####  http://localhost/silex_api/web/index.php/api/v1/helloworld\n\n+ Create a Product in DB   -parameter: product_name\n\u003e \u003e ####  http://localhost/silex_api/web/index.php/api/v1/product/create\n\n+ Update a Product in DB   -parameter: product_id, product_name\n\u003e \u003e ####  http://localhost/silex_api/web/index.php/api/v1/product/update\n\n+ Delete a Product in DB   -parameter: product_id\n\u003e \u003e ####  http://localhost/silex_api/web/index.php/api/v1/product/delete\n\n+ Select a Product or all products in DB   -parameter: product_id or null\n\u003e \u003e ####  http://localhost/silex_api/web/index.php/api/v1/product/\n\n\n### Install ###\n\n* Copy this folder project into your \"htdocs\"\n* Change your DataBase parameters in app.php\n* Use your favorite API Client like:\n*\tPOSTMAN\n*\tAdvanced REST Client.\n\n\n### Dev/Prod ###\n\n* To create predefined settings in webapp environments (Dev \u0026 Prod), check the files in:\n* ./resources/config\n\n\n### Main WebApp code ###\n\n* The main code of the app is in the ./src directory. Feel free to modify anything.\n\n### Check Points ###\n* Dont forget to enable/disable the \"//CORS SECTION\" in the main app.php file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuan-morales%2Fsilex_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuan-morales%2Fsilex_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuan-morales%2Fsilex_api/lists"}