{"id":17999644,"url":"https://github.com/skoro/slim-swoole-project","last_synced_at":"2025-03-26T06:31:43.826Z","repository":{"id":44656980,"uuid":"441264868","full_name":"skoro/slim-swoole-project","owner":"skoro","description":"Slim Framework + Swoole project boilerplate","archived":false,"fork":false,"pushed_at":"2023-04-24T22:44:50.000Z","size":148,"stargazers_count":6,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T09:35:19.981Z","etag":null,"topics":["boilerplate","php","skeleton","slim-framework","swoole"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/skoro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-12-23T18:28:31.000Z","updated_at":"2024-05-02T18:30:37.000Z","dependencies_parsed_at":"2024-10-29T22:44:21.428Z","dependency_job_id":null,"html_url":"https://github.com/skoro/slim-swoole-project","commit_stats":{"total_commits":125,"total_committers":3,"mean_commits":"41.666666666666664","dds":0.03200000000000003,"last_synced_commit":"28ed91bf9908505a9ae8718890b8292461adc7cc"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fslim-swoole-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fslim-swoole-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fslim-swoole-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fslim-swoole-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skoro","download_url":"https://codeload.github.com/skoro/slim-swoole-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245603843,"owners_count":20642895,"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":["boilerplate","php","skeleton","slim-framework","swoole"],"created_at":"2024-10-29T22:14:01.613Z","updated_at":"2025-03-26T06:31:42.914Z","avatar_url":"https://github.com/skoro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slim Framework + Swoole\n\nA project boilerplate of [Slim Framework](http://slimframework.com/)\nand [Swoole](https://github.com/swoole/swoole-src) an event-based asynchronous PHP extension.\n\n## Requirements\n\n* [PHP 8](https://www.php.net/releases/8.0/en.php)\n* [swoole](https://github.com/swoole/swoole-src) extension\n* [inotify](https://www.php.net/manual/en/book.inotify.php) extension (optional but see below)\n\n## Getting Started\n\nStart your new project with [composer](https://getcomposer.org/):\n\n```bash\n$ composer create-project skoro/slim-swoole-project \u003cproject-path\u003e\n```\n\n### Getting started with Docker\n\nDownload or clone this project then cd into the project directory and build\na container:\n```bash\ndocker-compose build --no-cache\n```\n\nInstall dependencies and run the server:\n```bash\ndocker-compose up -d\ndocker-compose exec php composer install\ndocker-compose exec php composer run server\n```\n\n### Configuring\n\nThe default settings are good enough but if you need to customize them\nyou have to start with copying stock settings:\n```bash\n$ cp .env.example .env\n```\n\n### Starting the server\n\nThen you can start the http server by running this command:\n```bash\n$ composer run server\n```\n\nIt will listen to `localhost` and `9501` port if you left\n`SERVER_ADDR` and `SERVER_PORT` environment variables by default.\n\nWhen you need to stop or restart the server by an external command\nlike `kill` you also can use a pid file which is located in `var/server.pid` directory.\n\n### Debug\n\nPlease keep in mind, changing your project source code won't be\napplied automatically, you need to restart the server manually.\nTo make life easier, you could enable `DEBUG=true` mode in your `.env` and the server\nwill restart automatically depending on the project source code\nchanges but this feature requires `inotify` extension to be installed.\nInstead of editing your `.env` you could start the server like this:\n```bash\n$ composer run server-debug\n```\n\nYou should also pay attention [xdebug](http://xdebug.org/) is not compatible\nwith Swoole (https://openswoole.com/docs/get-started/common-install-errors#trying-to-use-xdebug-and-swoole).\n\n## Dependency Injection\n\nThis project uses [PHP-DI](https://php-di.org/) container implementation.\nThe container itself and its dependencies are configured in `config/container.php`\nfile. Keep in mind, you can use any [psr-11](https://www.php-fig.org/psr/psr-11/)\ncompatible container, so it's up to you which container to use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoro%2Fslim-swoole-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskoro%2Fslim-swoole-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoro%2Fslim-swoole-project/lists"}