{"id":17678437,"url":"https://github.com/devdrops/workshop-refatoracao","last_synced_at":"2025-07-13T12:03:07.294Z","repository":{"id":148457809,"uuid":"178693769","full_name":"devdrops/workshop-refatoracao","owner":"devdrops","description":"Código usado no workshop Refatorando Seu Código com Boas Práticas.","archived":false,"fork":false,"pushed_at":"2019-04-06T07:14:56.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T00:24:08.290Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devdrops.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":"2019-03-31T13:45:29.000Z","updated_at":"2019-04-07T19:36:33.000Z","dependencies_parsed_at":"2023-05-20T06:15:47.233Z","dependency_job_id":null,"html_url":"https://github.com/devdrops/workshop-refatoracao","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devdrops/workshop-refatoracao","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fworkshop-refatoracao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fworkshop-refatoracao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fworkshop-refatoracao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fworkshop-refatoracao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devdrops","download_url":"https://codeload.github.com/devdrops/workshop-refatoracao/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fworkshop-refatoracao/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265136999,"owners_count":23716778,"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":[],"created_at":"2024-10-24T08:04:51.990Z","updated_at":"2025-07-13T12:03:07.230Z","avatar_url":"https://github.com/devdrops.png","language":"PHP","readme":"# PHP: Session and Cookies\n\nA simple login/logout demo.\n\nCredits to [@MohammedElagha](https://github.com/MohammedElagha) for his [original source code](https://github.com/MohammedElagha/php_session_and_cookies).\n\n## How to Execute?\n\nYou'll need:\n\n- Docker\n- Docker-Compose (version 3)\n\nJust run the command on your terminal:\n\n```bash\ndocker-compose up -d\n```\n\nThe application will be available at `http://0.0.0.0:80/`.\n\n## How to Stop Execution?\n\nRun this command at the project's source dir on your terminal:\n\n```bash\ndocker-compose down\n```\n\n## Database Requisites\n\nYou'll need the current environment up and running before prepare your database - see [How to Execute](#how-to-execute) instructions.\n\nThis project uses a MySQL database to manage user access. In order to do that, make sure to follow the next steps:\n\n1. From the source dir, open a bash communication with the current Docker service:\n\n```bash\ndocker-compose exec mysql bash\n```\n\n2. Now, import the SQL file into the target database:\n\n```\nroot@06055479a3d9:/# mysql -u developer -p login \u003c /tmp/tables/login.sql\nEnter password:\n```\n\n3. Now, check if the table is OK:\n\n```\nroot@06055479a3d9:/# mysql -u developer -p login\nEnter password:\nmysql\u003e show tables;\n\n    +-----------------+\n    | Tables_in_login |\n    +-----------------+\n    | user_logins     |\n    +-----------------+\n    1 row in set (0.00 sec)\n\n    mysql\u003e describe user_logins;\n    +----------+-------------+------+-----+---------+----------------+\n    | Field    | Type        | Null | Key | Default | Extra          |\n    +----------+-------------+------+-----+---------+----------------+\n    | id       | int(11)     | NO   | PRI | NULL    | auto_increment |\n    | username | varchar(32) | NO   |     | NULL    |                |\n    | password | varchar(16) | NO   |     | NULL    |                |\n    +----------+-------------+------+-----+---------+----------------+\n    3 rows in set (0.00 sec)\n```\n\nIf you have the same output as above, you're good to go! :wink:\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fworkshop-refatoracao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdrops%2Fworkshop-refatoracao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fworkshop-refatoracao/lists"}