{"id":16629080,"url":"https://github.com/reisraff/phulp-server","last_synced_at":"2025-09-11T02:16:09.540Z","repository":{"id":62534507,"uuid":"71418215","full_name":"reisraff/phulp-server","owner":"reisraff","description":"The server addon for phulp","archived":false,"fork":false,"pushed_at":"2021-01-27T19:09:32.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T05:14:24.354Z","etag":null,"topics":["php","php-server","phulp","phulp-server","phulpplugin","server"],"latest_commit_sha":null,"homepage":"https://github.com/reisraff/phulp","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/reisraff.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}},"created_at":"2016-10-20T02:31:45.000Z","updated_at":"2021-01-27T19:09:35.000Z","dependencies_parsed_at":"2022-11-02T15:01:02.127Z","dependency_job_id":null,"html_url":"https://github.com/reisraff/phulp-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reisraff%2Fphulp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reisraff%2Fphulp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reisraff%2Fphulp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reisraff%2Fphulp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reisraff","download_url":"https://codeload.github.com/reisraff/phulp-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243075815,"owners_count":20232428,"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":["php","php-server","phulp","phulp-server","phulpplugin","server"],"created_at":"2024-10-12T04:39:28.135Z","updated_at":"2025-03-11T16:42:29.585Z","avatar_url":"https://github.com/reisraff.png","language":"PHP","readme":"Phulp Server\n============\n\nIt's a third-party project that's wrapper for \"php built-in server\"\n\n#### Usage\n\n##### Install:\n\n```bash\n$ composer require --dev reisraff/phulp-server\n```\n\n##### Coding:\n\n```php\n\u003c?php\n\nuse Phulp\\Server\\Server;\n\n$server = new Server([\n    'address' =\u003e 'localhost',\n    'port' =\u003e '8000',\n    'router' =\u003e 'router.php',\n    'path' =\u003e '/www/data',\n]);\n\n$server-\u003efireRun();\n```\n\n##### Using with [PHULP](https://github.com/reisraff/phulp).\n\n```php\n\u003c?php\n\nuse Phulp\\Server\\Server;\n\n$phulp-\u003etask('serve', function ($phulp) use ($config) {\n    $server = new Server(\n        [\n            'address' =\u003e 'localhost',\n            'port' =\u003e '8000',\n            'router' =\u003e 'router.php',\n            'path' =\u003e $config['project_path'],\n        ],\n        $phulp-\u003egetLoop()\n    );\n});\n\n```\n\n## Credits\n\n[@reisraff](http://www.twitter.com/reisraff)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freisraff%2Fphulp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freisraff%2Fphulp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freisraff%2Fphulp-server/lists"}