{"id":13607639,"url":"https://github.com/f1amy/laravel-realworld-example-app","last_synced_at":"2025-04-12T14:30:44.852Z","repository":{"id":37010454,"uuid":"369435742","full_name":"f1amy/laravel-realworld-example-app","owner":"f1amy","description":"Exemplary RealWorld backend API built with Laravel PHP framework.","archived":false,"fork":false,"pushed_at":"2023-09-03T09:20:52.000Z","size":579,"stargazers_count":90,"open_issues_count":0,"forks_count":115,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-07T13:37:02.390Z","etag":null,"topics":["backend","ci","crud","demo-app","jwt","laravel","realworld","rest-api"],"latest_commit_sha":null,"homepage":"https://realworld.io","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/f1amy.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}},"created_at":"2021-05-21T06:28:00.000Z","updated_at":"2024-08-25T14:34:48.000Z","dependencies_parsed_at":"2024-01-14T06:23:37.635Z","dependency_job_id":"d292cd08-2713-4c12-b5be-6e822889e0df","html_url":"https://github.com/f1amy/laravel-realworld-example-app","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1amy%2Flaravel-realworld-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1amy%2Flaravel-realworld-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1amy%2Flaravel-realworld-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1amy%2Flaravel-realworld-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f1amy","download_url":"https://codeload.github.com/f1amy/laravel-realworld-example-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581004,"owners_count":21128091,"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":["backend","ci","crud","demo-app","jwt","laravel","realworld","rest-api"],"created_at":"2024-08-01T19:01:20.351Z","updated_at":"2025-04-12T14:30:44.359Z","avatar_url":"https://github.com/f1amy.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# ![Laravel RealWorld Example App](.github/readme/logo.png)\n\n[![RealWorld: Backend](https://img.shields.io/badge/RealWorld-Backend-blueviolet.svg)](https://github.com/gothinkster/realworld)\n[![Tests: status](https://github.com/f1amy/laravel-realworld-example-app/actions/workflows/tests.yml/badge.svg)](https://github.com/f1amy/laravel-realworld-example-app/actions/workflows/tests.yml)\n[![Coverage: percent](https://codecov.io/gh/f1amy/laravel-realworld-example-app/branch/main/graph/badge.svg)](https://codecov.io/gh/f1amy/laravel-realworld-example-app)\n[![Static Analysis: status](https://github.com/f1amy/laravel-realworld-example-app/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/f1amy/laravel-realworld-example-app/actions/workflows/static-analysis.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellowgreen.svg)](https://opensource.org/licenses/MIT)\n\n\u003e Example of a PHP-based Laravel application containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) API spec.\n\nThis codebase was created to demonstrate a backend application built with [Laravel framework](https://laravel.com/) including RESTful services, CRUD operations, authentication, routing, pagination, and more.\n\nWe've gone to great lengths to adhere to the **Laravel framework** community style guides \u0026 best practices.\n\nFor more information on how to this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo.\n\n## How it works\n\nThe API is built with [Laravel](https://laravel.com/), making the most of the framework's features out-of-the-box.\n\nThe application is using a custom JWT auth implementation: [`app/Jwt`](./app/Jwt).\n\n## Getting started\n\nThe preferred way of setting up the project is using [Laravel Sail](https://laravel.com/docs/sail),\nfor that you'll need [Docker](https://docs.docker.com/get-docker/) under Linux / macOS (or Windows WSL2).\n\n### Installation\n\nClone the repository and change directory:\n\n    git clone https://github.com/f1amy/laravel-realworld-example-app.git\n    cd laravel-realworld-example-app\n\nInstall dependencies (if you have `composer` locally):\n\n    composer create-project\n\nAlternatively you can do the same with Docker:\n\n    docker run --rm -it \\\n        --volume $PWD:/app \\\n        --user $(id -u):$(id -g) \\\n        composer create-project\n\nStart the containers with PHP application and PostgreSQL database:\n\n    ./vendor/bin/sail up -d\n\n(Optional) Configure a Bash alias for `sail` command:\n\n    alias sail='[ -f sail ] \u0026\u0026 bash sail || bash vendor/bin/sail'\n\nMigrate the database with seeding:\n\n    sail artisan migrate --seed\n\n## Usage\n\nThe API is available at `http://localhost:3000/api` (You can change the `APP_PORT` in `.env` file).\n\n### Run tests\n\n    sail artisan test\n\n### Run PHPStan static analysis\n\n    sail php ./vendor/bin/phpstan\n\n### OpenAPI specification (not ready yet)\n\nSwagger UI will be live at [http://localhost:3000/api/documentation](http://localhost:3000/api/documentation).\n\nFor now, please visit the specification [here](https://github.com/gothinkster/realworld/tree/main/api).\n\n## Contributions\n\nFeedback, suggestions, and improvements are welcome, feel free to contribute.\n\n## License\n\nThe MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1amy%2Flaravel-realworld-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff1amy%2Flaravel-realworld-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1amy%2Flaravel-realworld-example-app/lists"}