{"id":13548662,"url":"https://github.com/CircleCI-Public/sample-php-laravel","last_synced_at":"2025-04-02T21:32:04.430Z","repository":{"id":37089461,"uuid":"89369028","full_name":"CircleCI-Public/sample-php-laravel","owner":"CircleCI-Public","description":"Example CircleCI project using PHP and Laravel","archived":false,"fork":false,"pushed_at":"2023-07-22T00:47:50.000Z","size":11226,"stargazers_count":94,"open_issues_count":17,"forks_count":279,"subscribers_count":36,"default_branch":"circleci-2.0","last_synced_at":"2025-03-29T02:04:35.225Z","etag":null,"topics":["circleci","circleci-demos","laravel","php"],"latest_commit_sha":null,"homepage":"https://circleci.com/gh/CircleCI-Public/circleci-demo-php-laravel","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CircleCI-Public.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-04-25T14:18:44.000Z","updated_at":"2025-01-19T15:18:22.000Z","dependencies_parsed_at":"2024-08-01T12:16:09.143Z","dependency_job_id":"7d71c6e1-1e4f-4933-b1a1-42a1508f477d","html_url":"https://github.com/CircleCI-Public/sample-php-laravel","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/CircleCI-Public%2Fsample-php-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CircleCI-Public%2Fsample-php-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CircleCI-Public%2Fsample-php-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CircleCI-Public%2Fsample-php-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CircleCI-Public","download_url":"https://codeload.github.com/CircleCI-Public/sample-php-laravel/tar.gz/refs/heads/circleci-2.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895865,"owners_count":20851340,"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":["circleci","circleci-demos","laravel","php"],"created_at":"2024-08-01T12:01:12.992Z","updated_at":"2025-04-02T21:32:02.629Z","avatar_url":"https://github.com/CircleCI-Public.png","language":"Less","readme":"# Sample Laravel Application with Codeception tests.\n\n[![CircleCI](https://circleci.com/gh/CircleCI-Public/circleci-demo-php-laravel.svg?style=svg)](https://circleci.com/gh/CircleCI-Public/circleci-demo-php-laravel)\n\n### Setup\n\nYou can setup this sample use [Laradock](https://laradock.io/) to automatically set up a development environment for you.\n\n#### Laradock\n- Install docker and docker-compose\n- Clone repo\n- Create your .env file from the example file: `cp .env.testing .env`\n- Go to the `laradock` directory\n- Run `docker-compose up -d nginx mysql workspace`\n- Browse to http://localhost/\n\nTo SSH into the machine to run your tests, run `docker exec -it laradock_workspace_1 /bin/bash`.\n\n### To test\n\nRun Codeception, installed via Composer\n\n```\n./vendor/bin/codecept build\n./vendor/bin/codecept run\n```\n\n## Tests\n\nPlease check out some [good test examples](https://github.com/janhenkgerritsen/codeception-laravel5-sample/tree/codeception-2.1/tests) provided.\n\n### Functional Tests\n\nDemonstrates testing of [CRUD application](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/codeception-2.1/tests/functional/PostCrudCest.php) with\n\n* [PageObjects](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/codeception-2.1/tests%2Ffunctional%2F_pages%2FPostsPage.php)\n* [authentication](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/codeception-2.1/tests%2Ffunctional%2FAuthCest.php) (by user, credentials, http auth)\n* usage of session variables\n* [routes](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/codeception-2.1/tests%2Ffunctional%2FRoutesCest.php)\n* creating and checking records in database\n* testing of form errors\n\n### API Tests\n\nDemonstrates functional [testing of API](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/codeception-2.1/tests%2Fapi%2FPostsResourceCest.php) using REST and Laravel5 modules connected, with\n\n* partial json inclusion in response\n* GET/POST/PUT/DELETE requests\n* check changes inside database\n","funding_links":[],"categories":["Less"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCircleCI-Public%2Fsample-php-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCircleCI-Public%2Fsample-php-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCircleCI-Public%2Fsample-php-laravel/lists"}