{"id":15559393,"url":"https://github.com/citguru/bryss","last_synced_at":"2026-03-01T17:36:49.424Z","repository":{"id":56953062,"uuid":"289749032","full_name":"CITGuru/bryss","owner":"CITGuru","description":"Bryss is a PHP micro framework that helps you quickly write simple yet powerful RESTful APIs.","archived":false,"fork":false,"pushed_at":"2020-08-24T16:47:38.000Z","size":21,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T18:54:20.755Z","etag":null,"topics":["api","framework","php","restful-api"],"latest_commit_sha":null,"homepage":"","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/CITGuru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-23T18:59:45.000Z","updated_at":"2021-07-04T23:57:43.000Z","dependencies_parsed_at":"2022-08-21T08:20:32.617Z","dependency_job_id":null,"html_url":"https://github.com/CITGuru/bryss","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/CITGuru%2Fbryss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fbryss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fbryss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fbryss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CITGuru","download_url":"https://codeload.github.com/CITGuru/bryss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248072780,"owners_count":21043303,"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":["api","framework","php","restful-api"],"created_at":"2024-10-02T15:47:53.086Z","updated_at":"2026-03-01T17:36:44.350Z","avatar_url":"https://github.com/CITGuru.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bryss Framework\n\n![Bryss](assets/bryss.png)\n\nBryss is a PHP micro framework that helps you quickly write simple yet powerful RESTful APIs inspired by Express and Slim (read the source code by heart). Bryss is built from ground up and no dependencies used currently.\n\n* This is still in its early development used with care *\n\n## Installation\n\nIt's recommended that you use [Composer](https://getcomposer.org/) to install Bryss.\n\n```bash\n$ composer require citguru/bryss:dev-master\n```\n*This project is still in development and no stable version yet. You can install by using the :dev-master tag. You should be able to install without it once there's a stable release*\n\nThis will install Bryss. Bryss have supports for PHP version from 5.3.0 to the latest ones.\n\nYou can also clone this repo directly to your project folder and require the needed classes.\n\n\n## Usage\n\nSimple HelloWorld impelmentation of Bryss Framework.\n\n```php\n\u003c?php\n\n// public/index.php\n\nuse Bryss\\App;\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n$app = App::create();\n\n\n$app-\u003eget(\"/hello\", function($req, $res){\n    return $res-\u003ejson(array(\n        \"message\"=\u003e\"Hello World\"\n    ));\n});\n\n$app-\u003eget('/hello-xml', function($req, $res, $args) {\n  return $res-\u003exml(array(\n    \"message\" =\u003e \"Hello World\",\n    \"author\" =\u003e \"Ilori Stephen A \u003cstephenilori458@gmail.com\u003e\"\n  ));\n});\n\n$app-\u003eget(\"/hello/:name\", function($req, $res){\n    $name = $req-\u003eparams[\"name\"];\n    return $res-\u003ejson(array(\n        \"message\"=\u003e\"Hello World, \".$name\n    ), 201);\n});\n?\u003e\n```\n\nYou can quickly test this using the built-in PHP server:\n\n```bash\n$ php -S localhost:8000 -t public\n```\n\nGoing to http://localhost:8000/hello/, http://localhost:8000/hello-xml/ or http://localhost:8000/hello/:name would return:\n\n```json\n{\n    \"message\": \"Hello World\"\n}\n```\n\n```xml\n\u003croot\u003e\n  \u003cmessage\u003eHello World\u003c/message\u003e\n  \u003cauthor\u003eIlori Stephen A \u003cstephenilori458@gmail.com\u003e\u003c/author\u003e\n\u003c/root\u003e\n```\n\n```json\n{\n    \"message\": \"Hello World, \u003cname\u003e\"\n}\n```\n\n## Deployment\n\nIf you have Apache/Nginx and PHP setup either on your own server or shared hosting, you can easily use `.htaccess` to route all requests to an entry file which is usually `index.php`.\n\n```\nRewriteEngine on\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]\n```\n\nor\n\n```\n\u003cIfModule mod_rewrite.c\u003e\n   RewriteEngine on\n   RewriteRule ^$ public/ [L]\n   RewriteRule (^[^/]*$) public/$1 [L]\n\u003c/IfModule\u003e\n```\n\nThis means you would need to upload your Bryss project and all other files to the `public` or any folder you want (you will need to switch it out in the htaccess) to use. You will probably use FTP to upload it.\n\n## Documentation\n\nComing soon... For the main time kindly check [public/index](public/index.php) for how to use it.\n\n## Contributions\n\nPlease see [CONTRIBUTION](CONTRIBUTION.md) for details.\n\n## Security\n\nIf you discover security related issues, please email me : oyetoketoby80@gmail.com\n\n## License\n\nCopyright (c) 2020 Oyetoke Toby (twitter: @oyetokeT)\n\nThe Bryss Framework is licensed under the MIT license. See [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitguru%2Fbryss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitguru%2Fbryss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitguru%2Fbryss/lists"}