{"id":15524900,"url":"https://github.com/ericmann/notes-tutorial","last_synced_at":"2025-08-01T03:43:25.021Z","repository":{"id":40991522,"uuid":"236361104","full_name":"ericmann/notes-tutorial","owner":"ericmann","description":"PHP Security Tutorial","archived":false,"fork":false,"pushed_at":"2025-04-02T18:39:01.000Z","size":1564,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T19:30:26.008Z","etag":null,"topics":["security-tutorial","workshop"],"latest_commit_sha":null,"homepage":"","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/ericmann.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,"publiccode":null,"codemeta":null}},"created_at":"2020-01-26T19:03:47.000Z","updated_at":"2025-04-02T18:38:14.000Z","dependencies_parsed_at":"2024-12-17T14:43:24.401Z","dependency_job_id":"b204e8a9-dc2e-4b37-816b-e3c5c1c65e7a","html_url":"https://github.com/ericmann/notes-tutorial","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"491a7ff13ad4ef4f0fd59d41944c67fac4f3761b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ericmann/notes-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Fnotes-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Fnotes-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Fnotes-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Fnotes-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericmann","download_url":"https://codeload.github.com/ericmann/notes-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmann%2Fnotes-tutorial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268166253,"owners_count":24206428,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":["security-tutorial","workshop"],"created_at":"2024-10-02T10:53:32.125Z","updated_at":"2025-08-01T03:43:24.957Z","avatar_url":"https://github.com/ericmann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Security Tutorial - Notes\n\nThis is an iterative workshop/tutorial explaining PHP security. It's divided into multiple _modules_, each of which is a standalone lesson as part of a three-hour workshop documented through [these slides] [slides].\n\nEach module is broken into two directories:\n- `/server` - The actual PHP server, runnable through `php -S localhost:8888 -t module-N/server`\n- `/client` - A command line client, also written in PHP, which interacts with the server component.\n\n\n## Installation\n\nComposer dependencies are bundled in the repository to make it easier to clone and get started with this project. If for any reason you want to _update_ your dependencies, merely do so with `composer update`.\n\nThe first step is to install Composer dependencies by running `composer install` in the root directory of the tutorial.\n\nThe modules themselves are self-contained and share their dependencies.\n\n## Understanding the Lessons\n\nEach lesson is built to cover a specific topic regarding PHP security. As such, there are several placeholder @TODOs throughout the code that are meant for you to complete. Each is documented explaining what's expected from you to complete the task.\n\nThe lessons are structured into the following modules:\n\n### 1. Credentials Management\n\n`module-1`\n\n- `.env` files\n- Flat configuration files\n\n### 2. Authentication\n\n`module-2`\n\n- Password management\n- Password storage\n- Password hashing\n\n### 3. Session Management\n\n`module-3`\n\n- PHP session configuration\n\n### 4. Data - Validation \u0026 Sanitization\n\n`module-4`\n\n- Input validation\n- Output sanitization\n\n### 5. Encryption\n\n`module-5`\n\n- File encryption\n- Database encryption\n- Blind indicies\n\n[slides]: https://speakerdeck.com/ericmann/evolution-of-php-security-2024","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmann%2Fnotes-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmann%2Fnotes-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmann%2Fnotes-tutorial/lists"}