{"id":19565285,"url":"https://github.com/raeen123/bamboo","last_synced_at":"2025-10-14T13:42:27.282Z","repository":{"id":57046588,"uuid":"348120092","full_name":"Raeen123/Bamboo","owner":"Raeen123","description":"Bamboo is a php api framework","archived":false,"fork":false,"pushed_at":"2021-03-26T09:03:03.000Z","size":168,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-15T15:00:37.332Z","etag":null,"topics":["api","api-framework","framework","php","php-api-framework","php-framework","phpframework"],"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/Raeen123.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":"2021-03-15T20:55:56.000Z","updated_at":"2021-04-05T16:38:10.000Z","dependencies_parsed_at":"2022-08-24T03:40:36.880Z","dependency_job_id":null,"html_url":"https://github.com/Raeen123/Bamboo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Raeen123/Bamboo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raeen123%2FBamboo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raeen123%2FBamboo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raeen123%2FBamboo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raeen123%2FBamboo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raeen123","download_url":"https://codeload.github.com/Raeen123/Bamboo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raeen123%2FBamboo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018720,"owners_count":26086613,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","api-framework","framework","php","php-api-framework","php-framework","phpframework"],"created_at":"2024-11-11T05:25:55.103Z","updated_at":"2025-10-14T13:42:27.253Z","avatar_url":"https://github.com/Raeen123.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ccenter\u003e\n\u003cimg src=\"icon.ico\" width=\"200\"\u003e\n\u003c/center\u003e\n\n\u003ch1\u003eBamboo\u003c/h1\u003e\nBamboo is a php api framework . Very easy , simple and light\n\u003cbr\u003e\u003cbr\u003e\n\u003csmall\u003eMade by Raeen Ahani in 2021 in Gorgan, Iran\u003csmall\u003e\n \u003cbr\u003e\u003cbr\u003e\n \n[![Latest Stable Version](https://poser.pugx.org/raeen/bamboo/v)](//packagist.org/packages/raeen/bamboo)[![Total Downloads](https://poser.pugx.org/raeen/bamboo/downloads)](//packagist.org/packages/raeen/bamboo)[![Latest Unstable Version](https://poser.pugx.org/raeen/bamboo/v/unstable)](//packagist.org/packages/raeen/bamboo)[![License](https://poser.pugx.org/raeen/bamboo/license)](//packagist.org/packages/raeen/bamboo)[![Monthly Downloads](https://poser.pugx.org/raeen/bamboo/d/monthly)](//packagist.org/packages/raeen/bamboo)[![Daily Downloads](https://poser.pugx.org/raeen/bamboo/d/daily)](//packagist.org/packages/raeen/bamboo)[![composer.lock](https://poser.pugx.org/raeen/bamboo/composerlock)](//packagist.org/packages/raeen/bamboo)[![.gitattributes](https://poser.pugx.org/raeen/bamboo/gitattributes)](//packagist.org/packages/raeen/bamboo)[![Dependents](https://poser.pugx.org/raeen/bamboo/dependents)](//packagist.org/packages/raeen/bamboo)[![Suggesters](https://poser.pugx.org/raeen/bamboo/suggesters)](//packagist.org/packages/raeen/bamboo)\n\n****\n\u003cbr\u003e\n\n\u003ch2\u003eInstall\u003c/h2\u003e\n\n\u003cbr\u003e\n\n```shell\ncomposer create-project raeen/bamboo\n```\n\u003cbr\u003e\n\n\u003ch2\u003eDocumentation\u003c/h2\u003e\n\n\u003cbr\u003e\n\n\u003ch3\u003eDatabase\u003c/h3\u003e\n\nTo connect to the mysql database, refer to the ``.env``\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eRouter\u003c/h3\u003e\n\nWe use \u003ca href=\"https://github.com/bramus/router\"\u003ebramus/router\u003c/a\u003e for the router, of course we customized it so that by default in the controller the function of the sent method is executed\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eMethod\u003c/h3\u003e\n\nThe method sent to the controllers is stored in the ``$method`` ( ``$this-\u003emethod`` ) variable\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003ePath\u003c/h3\u003e\n\nThe page address is stored in the ``$path`` ( ``$this-\u003epath`` ) variable on the controllers\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eData\u003c/h3\u003e\n\nThe data sent to the api is stored in the controllers in the ``$data``  ( ``$this-\u003edata`` ) variable\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eFile\u003c/h3\u003e\n\nThe information of the files is stored in the ``$files`` ( ``$this-\u003efiles`` ) variable in the controllers\n\u003cbr\u003e\u003cbr\u003e\nThe files are downloaded in the archive folder. To download, use the ``download(key of file , save File name = null)``function in the controllers.\n\u003cbr\u003e\u003cbr\u003e\nUse the ``sendFile(file name)`` function on the controllers to send the file\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eAuthenticate\u003c/h3\u003e\n\nFor the http authorization header, use the ``auth(username, password)`` function in the controllers\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eApi Key\u003c/h3\u003e\n\nUse the ``apikey(length = 20)`` function in the controller to create the api key\n\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eQuery\u003c/h3\u003e\n\nUse the  ``DB::query(sql query, parameters ...)``  function for SQL query on controllers. This function uses pdo\n, example : \n```php\n$query = DB::query(\"SELECT * FROM user WHERE name=?\", $name);\n\n$result = $query-\u003efetch(PDO::FETCH_OBJ);\n```\n\u003cbr\u003e\n\u003ch3\u003eRender\u003c/h3\u003e\n\nUse  ``render(int $code, array | object $data = null, $status = null, $message = null)`` on the controllers to send the result as jason. Messages and statuses are completed by code by default\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraeen123%2Fbamboo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraeen123%2Fbamboo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraeen123%2Fbamboo/lists"}