{"id":19505359,"url":"https://github.com/pfwd/freecodecamp-php-oop","last_synced_at":"2025-04-26T00:33:50.539Z","repository":{"id":136248709,"uuid":"190921324","full_name":"pfwd/freecodecamp-PHP-OOP","owner":"pfwd","description":"Watch me build this Invoice Application in PHP-\u003e","archived":false,"fork":false,"pushed_at":"2020-04-28T18:57:48.000Z","size":216,"stargazers_count":38,"open_issues_count":5,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T05:51:13.034Z","etag":null,"topics":["freecodecamp","freecodecamp-project","howtocodewell","invoice-management","php","php-framework","php-oop","php7","phpframework","teaching","video-course"],"latest_commit_sha":null,"homepage":"https://www.twitch.tv/howtocodewell","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/pfwd.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-06-08T18:23:32.000Z","updated_at":"2024-12-29T16:24:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a450f928-acb2-41ad-979a-8405f264fb88","html_url":"https://github.com/pfwd/freecodecamp-PHP-OOP","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/pfwd%2Ffreecodecamp-PHP-OOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfwd%2Ffreecodecamp-PHP-OOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfwd%2Ffreecodecamp-PHP-OOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfwd%2Ffreecodecamp-PHP-OOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfwd","download_url":"https://codeload.github.com/pfwd/freecodecamp-PHP-OOP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250917283,"owners_count":21507561,"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":["freecodecamp","freecodecamp-project","howtocodewell","invoice-management","php","php-framework","php-oop","php7","phpframework","teaching","video-course"],"created_at":"2024-11-10T22:29:58.976Z","updated_at":"2025-04-26T00:33:50.527Z","avatar_url":"https://github.com/pfwd.png","language":"PHP","readme":"# FreeCodeCamp PHP OOP Course\n### By Peter Fisher How To Code Well\n\n- [Installation](#installation)\n    - [Database](#database)\n- [Requirements](#requirements)\n- [Testing](#testing)\n\n## Installation\nCreate `.env` \n```\n$ cp .env.dist .env\n```\nModify values in `.env`\n\nCreating Docker Machine (Optional)\n```\n$ docker-machine create howtocodewell-oop-php\n$ docker-machine env howtocodewell-oop-php\n$ eval $(docker-machine env howtocodewell-oop-php)\n```\n\nCreate the containers and build the images\n```\n$ docker-compose up -d --build\n```\n\nFind IP of Docker machine\n```\n$ docker-machine ip howtocodewell-oop-php\n192.168.99.100\n```\n\nPut the IP in a browser\n\n### Database\n*Please note: This will delete the database and create a new one. All data will be lost*\n\nTo rebuild the database run the following command from the host machine. (Change \u003cDB_PASSWORD\u003e)\n```\n$ docker-compose exec -T db mysql -u root --password=\u003cDB_PASSWORD\u003e \u003c mysql/rebuild.sql\n```\nOr from within the container\n```\n$ docker-compose exec db mysql -u root -p\nEnter password: \n\nmysql\u003e use invoice_app;\nmysql\u003e source /scripts/rebuild.sql\n```\n## Requirements\n- Docker 18.09.2\n- Docker Machine 0.16.1 (Optional)\n- Docker Compose 1.23.2 \n\n## Testing\nRun unit tests\n```\n$ docker-compose exec web vendor/bin/codecept run unit \n```\n\nRun unit tests with code coverage\n```\n$ docker-compose exec web vendor/bin/codecept run unit --coverage --coverage-xml --coverage-html\n$ open tests/_output/coverage/index.html\n```\n\nRun acceptance tests\n```\n$ docker-compose exec web vendor/bin/codecept run acceptance\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfwd%2Ffreecodecamp-php-oop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfwd%2Ffreecodecamp-php-oop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfwd%2Ffreecodecamp-php-oop/lists"}