{"id":19640808,"url":"https://github.com/onlyonehas/perk_php_api","last_synced_at":"2026-06-20T12:32:53.527Z","repository":{"id":171807641,"uuid":"139774808","full_name":"onlyonehas/perk_php_api","owner":"onlyonehas","description":"retrieves coupons for one time use, implements api authentication ","archived":false,"fork":false,"pushed_at":"2018-07-05T00:10:04.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-11T07:29:35.544Z","etag":null,"topics":["api","authentication","docker-compose","php"],"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/onlyonehas.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,"zenodo":null}},"created_at":"2018-07-04T23:55:04.000Z","updated_at":"2018-11-07T16:40:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"b477ae43-6169-4c1e-8bea-8abe7369e138","html_url":"https://github.com/onlyonehas/perk_php_api","commit_stats":null,"previous_names":["onlyonehas/perk_php_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onlyonehas/perk_php_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyonehas%2Fperk_php_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyonehas%2Fperk_php_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyonehas%2Fperk_php_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyonehas%2Fperk_php_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onlyonehas","download_url":"https://codeload.github.com/onlyonehas/perk_php_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyonehas%2Fperk_php_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34570535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["api","authentication","docker-compose","php"],"created_at":"2024-11-11T14:06:54.105Z","updated_at":"2026-06-20T12:32:53.516Z","avatar_url":"https://github.com/onlyonehas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PERK PHP REST API\n\n## TO INSTALL\n\n### Database\n\u003eImport the coupons.sql file in your database\n\u003eConfigure the db params in the config/Database.php file to your own\n\n### RUN Server\n\u003eAlternatively run docker-compose up -d\n\tWhich uses port  :9906 \n    private $db_name = 'discounts';\n    private $username = 'perk_user';\n    private $password = 'perk321';\n\n\u003eIN POSTMAN RUN GET http://localhost:8100/api/getcoupons\nAlternative can RUN php -S localhost:80 inside the directory eg http://localhost:8100/api/getcoupons.php\n\n### Aunthentication\n\u003eTo request a token \nset Secret in header use key: secret value: secretcode\nthis will return a token\nadd the token along with the secret in headers\ne.g. key: token value: RANDOM2131\n\n\u003eOnce Aunthenticated continue with your query \n e.g. GET http://localhost/api/getcoupons?brand=tesco\u0026limit=1\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyonehas%2Fperk_php_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonlyonehas%2Fperk_php_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyonehas%2Fperk_php_api/lists"}