{"id":17117101,"url":"https://github.com/enygma/sunphp17","last_synced_at":"2025-07-03T18:08:58.973Z","repository":{"id":56978257,"uuid":"79332841","full_name":"enygma/sunphp17","owner":"enygma","description":"Application setup for Sunshine PHP 2017 Tutorial","archived":false,"fork":false,"pushed_at":"2017-02-04T13:40:44.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T01:37:05.259Z","etag":null,"topics":["security","sunphp17","sunshinephp","tutorial"],"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/enygma.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}},"created_at":"2017-01-18T11:17:02.000Z","updated_at":"2017-01-18T11:25:31.000Z","dependencies_parsed_at":"2022-08-21T08:10:52.172Z","dependency_job_id":null,"html_url":"https://github.com/enygma/sunphp17","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/enygma/sunphp17","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enygma%2Fsunphp17","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enygma%2Fsunphp17/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enygma%2Fsunphp17/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enygma%2Fsunphp17/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enygma","download_url":"https://codeload.github.com/enygma/sunphp17/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enygma%2Fsunphp17/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263375302,"owners_count":23457316,"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":["security","sunphp17","sunshinephp","tutorial"],"created_at":"2024-10-14T17:50:36.224Z","updated_at":"2025-07-03T18:08:58.337Z","avatar_url":"https://github.com/enygma.png","language":"PHP","readme":"# Sunshine PHP 2017 - Build Security In\n\nThis repository is a compliment to the \"Build Security In\" session presented at the Sunshine PHP Conference 2017\n\n[http://2017.sunshinephp.com/tutorials#build-security-in](http://2017.sunshinephp.com/tutorials#build-security-in)\n\n## Setup\n\nThis application makes use of a database connection for some things. The use the settings:\n\n```\nusername: sunphp\npassword: subphp17\ndatabase name: sunphp\nhost: localhost\n```\n\n### Create the project\n\n```\ncomposer create-project enygma/sunphp17\n```\n\n### Create the MySQL database\n\nBy default this application uses a MySQL database but that can be changed if desired with some config updates. First, though, you'll need to make your DB:\n\n```\nmysqladmin create sunphp17\nmysql -p mysql\n\u003e grant all on sunphp.* to 'sunphp'@'localhost' identified by 'sunphp17';\n\u003e flush privileges;\n\u003e quit;\n```\n\n### Run the setup script\n\nThe setup script will perform a few actions and ask a few questions. Be sure that when it asks about the database information you use the connection information above.\n\n```\n./setup\n```\n\n### Finished Product\n\nOnce the setup has completed and the migrations have run you should have a database with two users: user1 and user2.\nThese users will have the password \"test123\".\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenygma%2Fsunphp17","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenygma%2Fsunphp17","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenygma%2Fsunphp17/lists"}