{"id":2130644,"url":"https://github.com/furkangurel/Boostr","last_synced_at":"2025-07-13T11:30:31.991Z","repository":{"id":218437571,"uuid":"129363732","full_name":"furkangurel/Boostr","owner":"furkangurel","description":"Easy Codeigniter Query Library","archived":false,"fork":false,"pushed_at":"2018-11-05T07:12:06.000Z","size":19,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-22T09:34:24.504Z","etag":null,"topics":["codeigniter","codeigniter-library","codeigniter3","codeigniternodb"],"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/furkangurel.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-13T07:12:58.000Z","updated_at":"2024-06-06T12:44:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e56ec67-a617-45d5-b531-942101ce6942","html_url":"https://github.com/furkangurel/Boostr","commit_stats":null,"previous_names":["furkangurel/boostr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/furkangurel/Boostr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkangurel%2FBoostr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkangurel%2FBoostr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkangurel%2FBoostr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkangurel%2FBoostr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furkangurel","download_url":"https://codeload.github.com/furkangurel/Boostr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furkangurel%2FBoostr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265131449,"owners_count":23716015,"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":["codeigniter","codeigniter-library","codeigniter3","codeigniternodb"],"created_at":"2024-01-21T23:24:47.381Z","updated_at":"2025-07-13T11:30:31.718Z","avatar_url":"https://github.com/furkangurel.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":" # BOOSTR - Codeigniter Easy Query Library\n\n Simple Query Library. İnsert, Update, Delete, Find, Select, Join, Count, Max, Min, Aggregate\n\n ## Version2\n added time_ago function and slug function.\n\n\n\n\n\n## Installation\n\n- Download the zip file of the latest release at https://github.com/furkangurel/Boostr/archive/master.zip\n- Extract to your `application/libraries` directory\n- In your `config/autoload.php` file, add `boostr/boostr` to `$autoload['libraries']`. So it will look like this:\n\n  ```php\n  $autoload['libraries'] = array('boostr/boostr');\n  ```\n\n## Usage\n### Defining Models\nModels in Boostr represent a single table to work with. To define a model, it's about the same with  CodeIgniter, but instead of extending `CI_Model`, the  model should extends `Boostr\\Model` class.\n\n*Example:* Model for table user, located in `models/user.php`\n\n```php\nclass User extends Boostr\\Model {\n  protected $table = \"user\";\n  protected $show = \"name , surname , age\";\n  protected $slug= ['slug','title']; \n  protected $date=\"created_at\";\n}\n```\n\nThe `$table` property is used to tell which table the model will work with. \n\n### Model properties\nHere are some properties you can use to customize the model\n\n- `$table` : to define the table name. This property is mandatory to set\n- `$show` : to define which  columns show. By default it uses all columns\n- `$slug` : first parameter slug column - second parameter which table will slug\n- `$date` : which table will be used in the date\n\n## Querying\n### İnsert\n```php\nUser::insert($data);\n```\n\n### Update\n```php\nUser::update($id,$data);\n```\nYou can also update multiple data.\n```php\nUser::update($where,$data); // $where and  $data must be an array\n```\n\n### Delete\n```php\nUser::delete($id);\n```\nYou can also delete multiple data.\n```php\nUser::delete($where); // $where  must be an array\n```\n\n\n### Select\n```php\n$users = User::select($where,$order_by,$limit);  // $where, $order_by  must be an array.\nforeach($users as $user)\n{\n  echo $user-\u003ename;\n}\n```\n\n### Find\n```php\n$user = User::find($id);\n// or\n$user = User::find($where);\n```\n\n### Like\n```php\n$users = User::like($where,$order_by,$limit);  // $where, $order_by  must be an array.\nforeach($users as $user)\n{\n  echo $user-\u003ename;\n}\n```\n\n### Join\n```php\n$join=['users','id'];   // first parameter which join table. second parameter which join column\nPosts::join($join,$where,$order_by,$limit);  // join, $where, $order_by  must be an array.\n```\n\n### Count\n```php\nUser::count($where);  // $where  must be an array. \n```\n\n### Max\n```php\nUser::max('age');  // \n```\n\n### Min\n```php\nUser::min('age');  // \n```\n\n### Avg\n```php\nUser::avg('age');  // \n```\n\n### Query\n```php\n$users = User::query(\"YOUR QUERY HERE\");  //  \n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkangurel%2FBoostr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurkangurel%2FBoostr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurkangurel%2FBoostr/lists"}