{"id":20935332,"url":"https://github.com/thetechguy44/php-ecommerce-rest-api-in-oop","last_synced_at":"2026-04-21T23:03:06.057Z","repository":{"id":189508923,"uuid":"680594028","full_name":"Thetechguy44/PHP-Ecommerce-Rest-Api-in-OOP","owner":"Thetechguy44","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-30T13:25:12.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T14:45:05.478Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thetechguy44.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":"2023-08-19T18:44:05.000Z","updated_at":"2024-06-30T13:25:16.000Z","dependencies_parsed_at":"2023-08-20T15:12:39.817Z","dependency_job_id":null,"html_url":"https://github.com/Thetechguy44/PHP-Ecommerce-Rest-Api-in-OOP","commit_stats":null,"previous_names":["thetechguy44/2-page-ecommerce-website-using-autoloader-and-rest-api-in-php","thetechguy44/php-ecommerce-rest-api-in-oop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thetechguy44/PHP-Ecommerce-Rest-Api-in-OOP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thetechguy44%2FPHP-Ecommerce-Rest-Api-in-OOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thetechguy44%2FPHP-Ecommerce-Rest-Api-in-OOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thetechguy44%2FPHP-Ecommerce-Rest-Api-in-OOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thetechguy44%2FPHP-Ecommerce-Rest-Api-in-OOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thetechguy44","download_url":"https://codeload.github.com/Thetechguy44/PHP-Ecommerce-Rest-Api-in-OOP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thetechguy44%2FPHP-Ecommerce-Rest-Api-in-OOP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32113748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-18T22:14:24.981Z","updated_at":"2026-04-21T23:03:06.042Z","avatar_url":"https://github.com/Thetechguy44.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Ecommerce-Restful-Api-in-PHP\nThe website has a product list page, which serves as the index page where all products are displayed, and a product add page, where you can add a new product. It has a parent class file of product with the sub class file (Book, Furniture, DVD), and it uses autoloader to automatically run the need class file.\nThe PHP is used to construct class files and the rest API, which is the saveApi and the getApi. Javascript is also heavily used in this project. The saveApi gathers the data from the request, examines the data validation, and saves to the database if there are no errors. Otherwise, it displays an error message describing what went wrong in the network. While the getApi displays the data that was retrieved as JSON from the database on the webpage.\nThe frontend and the rest API are interacted with using JavaScript. It uses the api to submit and get data in JSON format and displays the results in a web page. Only three products (Book, Furniture, and DVD) can be added; any further products will result in a network error notice. \n \n#Link to webapp:\nhttps://myscandiproject.000webhostapp.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetechguy44%2Fphp-ecommerce-rest-api-in-oop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthetechguy44%2Fphp-ecommerce-rest-api-in-oop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetechguy44%2Fphp-ecommerce-rest-api-in-oop/lists"}