{"id":26066448,"url":"https://github.com/psecio/secure-api","last_synced_at":"2025-04-11T16:26:01.270Z","repository":{"id":74279222,"uuid":"88310045","full_name":"psecio/secure-api","owner":"psecio","description":"Repository for the \"Building a Secure API\" series on Websec.io","archived":false,"fork":false,"pushed_at":"2017-08-16T08:27:18.000Z","size":16,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T12:40:45.690Z","etag":null,"topics":["api","php","security","training","tutorial","websecio"],"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/psecio.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-04-14T23:18:07.000Z","updated_at":"2022-08-29T01:32:15.000Z","dependencies_parsed_at":"2024-02-11T00:41:30.082Z","dependency_job_id":null,"html_url":"https://github.com/psecio/secure-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psecio%2Fsecure-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psecio%2Fsecure-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psecio%2Fsecure-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psecio%2Fsecure-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psecio","download_url":"https://codeload.github.com/psecio/secure-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248439428,"owners_count":21103606,"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":["api","php","security","training","tutorial","websecio"],"created_at":"2025-03-08T20:52:04.826Z","updated_at":"2025-04-11T16:26:01.246Z","avatar_url":"https://github.com/psecio.png","language":"PHP","readme":"# secure-api\nRepository for the \"[Building a Secure API](https://websec.io/tagged/secureapi)\" series on [Websec.io](https://websec.io)\n\n## To use this project\n\n1. Clone the repository:\n\n```\ngit clone git@github.com:psecio/secure-api.git\n```\n\n2. Change over to the `public/` directory\n3. Use the built-in PHP web server to handle requests\n\n```\nphp -S localhost:8000\n```\n\nThen go to `http://localhost:8000` in a browser to view the result.\n\n## Test client\n\nThe file `test-client.php` contains an example of the HTTP client making a request to the API key with the flow created in the tutorial series. You'll need to install Guzzle to have it work correctly. Install it via Composer with:\n\n```\ncomposer require guzzlehttp/guzzle\n```\n\nThen you can run it with: `php test-client.php`. If all goes well you should get the \"validation success\" message back from the last call to the API.\n\n## The Series\n\n- [Part 1](https://websec.io/2017/04/14/Build-Secure-API-Part1.html)\n- [Part 2](https://websec.io/2017/04/14/Build-Secure-API-Part2.html)\n- [Part 3](https://websec.io/2017/04/14/Build-Secure-API-Part3.html)\n- [Part 4](https://websec.io/2017/06/21/Build-Secure-API-Part4.html)\n- [Part 5](https://websec.io/2017/08/16/Build-Secure-API-Part3.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsecio%2Fsecure-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsecio%2Fsecure-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsecio%2Fsecure-api/lists"}