{"id":13559901,"url":"https://github.com/techlab/codeigniter-smartgrid","last_synced_at":"2025-08-23T00:31:06.952Z","repository":{"id":57066086,"uuid":"65097957","full_name":"techlab/codeigniter-smartgrid","owner":"techlab","description":"A simple PHP datagrid control for CodeIgniter framework with Bootstrap","archived":false,"fork":false,"pushed_at":"2017-04-19T09:46:50.000Z","size":20,"stargazers_count":18,"open_issues_count":3,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T20:45:08.388Z","etag":null,"topics":["bootstrap","codeigniter","datagrid","mysql"],"latest_commit_sha":null,"homepage":"http://techlaboratory.net/smartgrid","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/techlab.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-08-06T19:10:12.000Z","updated_at":"2023-09-28T01:42:30.000Z","dependencies_parsed_at":"2022-08-24T14:01:29.659Z","dependency_job_id":null,"html_url":"https://github.com/techlab/codeigniter-smartgrid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab%2Fcodeigniter-smartgrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab%2Fcodeigniter-smartgrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab%2Fcodeigniter-smartgrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techlab%2Fcodeigniter-smartgrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techlab","download_url":"https://codeload.github.com/techlab/codeigniter-smartgrid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230651181,"owners_count":18259375,"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":["bootstrap","codeigniter","datagrid","mysql"],"created_at":"2024-08-01T13:00:34.951Z","updated_at":"2024-12-20T22:20:17.911Z","avatar_url":"https://github.com/techlab.png","language":"PHP","readme":"# CodeIgniter SmartGrid\n### A simple PHP datagrid control for CodeIgniter with Bootstrap support\n\n\nSmartGrid focus on data display than data manipulation. \nWe are starting with limited features to make the code very simple and robust, \nyet we will be adding more feature on the go. The code is very simple and well documented, which make it easy for customization.\n\n+ [Homepage](http://techlaboratory.net/smartgrid)\n+ [Documentation](http://techlaboratory.net/smartgrid/documentation)\n\nDemos\n-----\n  + [Basic](http://techlaboratory.net/smartgrid/demo/example-smartgrid)\n  + [Array Datasource](http://techlaboratory.net/smartgrid/demo/example-array-grid)\n  + [with DataTables](http://techlaboratory.net/smartgrid/demo/example-smartgrid_and-datatables)\n\nRequirements\n-----\n  + [CodeIgniter 3.x](https://codeigniter.com/download)\n  + [Bootstrap 3+](http://getbootstrap.com/getting-started/#download)\n\nInstallation\n-----\n1. [Download](https://github.com/techlab/codeigniter-smartgrid/archive/master.zip) the source files\n2. Copy the folder and files `application/libraries/SmartGrid/` to `application/libraries/` folder of your CodeIgniter installation\n3. That's it! Start using with the examples below or at [application/controllers/Example_smartgrid.php](https://github.com/techlab/codeigniter-smartgrid/blob/master/application/controllers/Example_smartgrid.php)\n\nExample usage\n-----\non your controller:\n```php\n// Load the SmartGrid Library\n$this-\u003eload-\u003elibrary('SmartGrid/Smartgrid');\n\n// MySQL Query to get data\n$sql = \"SELECT * FROM employee\"; \n\n// Column settings\n$columns = array(\"employee_id\"=\u003earray(\"header\"=\u003e\"Employee ID\", \"type\"=\u003e\"label\"),\n                \"employee_name\"=\u003earray(\"header\"=\u003e\"Name\", \"type\"=\u003e\"label\"),\n                \"employee_designation\"=\u003earray(\"header\"=\u003e\"Designation\", \"type\"=\u003e\"label\")\n        );        \n        \n// Set the grid \n$this-\u003esmartgrid-\u003eset_grid($sql, $columns);\n\n// Render the grid and assign to data array, so it can be print to on the view\n$data['grid_html'] = $this-\u003esmartgrid-\u003erender_grid();    \n\n// Load view\n$this-\u003eload-\u003eview('example_smartgrid', $data);\n```\n\nand then, on your view:\n```html\n\u003c!-- For styling, refer the bootstrap from CDN or from your server. \nIgnore this if you already have included in main view --\u003e\n\n\u003clink rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\"\u003e\n```\n```php\n// Print the grid html\necho $grid_html; \n```\nFeatures\n-----\n  + Simple datagrid for data display\n  + Accepts both MySQL query and array data\n  + Automatic Pagination\n  + Uses Twitter Bootstrap for styling, so easy to style with any bootstrap template\n  + No extra css or js files to include\n  \nLimitations \n----- \n  - Add, Edit, Del, Themes, Export, Search and Sort are not supported\n  - Search, Sort, Themes, Export features are on pipeline\n  - Database support: MySQL only for now \n  - Language support: English only for now\n  - Ajax is not support now\n\nVersion\n-----\n**SmartGrid v0.6.5-beta**\n\u003e Notice:- SmartGrid is on beta version, usage on production environment is not recommended unless tested well. \n\u003e Please report issue at [github issues](https://github.com/techlab/codeigniter-smartgrid/issues/)\n\n\nLicense\n----\n[MIT License](https://github.com/techlab/codeigniter-smartgrid/blob/master/LICENSE)\n","funding_links":[],"categories":["Libraries","PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechlab%2Fcodeigniter-smartgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechlab%2Fcodeigniter-smartgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechlab%2Fcodeigniter-smartgrid/lists"}