{"id":14987444,"url":"https://github.com/atsanna/codeigniter4-datatables","last_synced_at":"2025-09-07T02:04:19.457Z","repository":{"id":37968861,"uuid":"500468833","full_name":"atsanna/codeigniter4-datatables","owner":"atsanna","description":"🔥Datatables support for CodeIgniter 4","archived":false,"fork":false,"pushed_at":"2024-07-10T08:10:02.000Z","size":953,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T02:03:26.119Z","etag":null,"topics":["codeigniter-library","codeigniter4","datatables","datatables-serverside"],"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/atsanna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["atsanna"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/atsanna"]}},"created_at":"2022-06-06T14:34:26.000Z","updated_at":"2025-02-17T17:05:01.000Z","dependencies_parsed_at":"2024-09-25T00:32:20.621Z","dependency_job_id":null,"html_url":"https://github.com/atsanna/codeigniter4-datatables","commit_stats":{"total_commits":165,"total_committers":3,"mean_commits":55.0,"dds":"0.12121212121212122","last_synced_commit":"502c628ce3a1c91a8eedab9610ea14703ddd640e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atsanna/codeigniter4-datatables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsanna%2Fcodeigniter4-datatables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsanna%2Fcodeigniter4-datatables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsanna%2Fcodeigniter4-datatables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsanna%2Fcodeigniter4-datatables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atsanna","download_url":"https://codeload.github.com/atsanna/codeigniter4-datatables/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsanna%2Fcodeigniter4-datatables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273986629,"owners_count":25202708,"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-09-07T02:00:09.463Z","response_time":67,"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":["codeigniter-library","codeigniter4","datatables","datatables-serverside"],"created_at":"2024-09-24T14:14:37.503Z","updated_at":"2025-09-07T02:04:19.434Z","avatar_url":"https://github.com/atsanna.png","language":"PHP","funding_links":["https://github.com/sponsors/atsanna","https://www.paypal.me/atsanna"],"categories":[],"sub_categories":[],"readme":"# codeigniter4-datatables\n[![CodeIgniter 4.2.x](https://img.shields.io/badge/CodeIgniter-4.2.x-orange.svg)](https://codeigniter.com/)\n[![Unit Tests](https://github.com/atsanna/codeigniter4-datatables/workflows/PHPUnit/badge.svg)](https://github.com/atsanna/codeigniter4-datatables/actions/workflows/phpunit.yml)\n[![Static Analysis](https://github.com/atsanna/codeigniter4-datatables/workflows/PHPStan/badge.svg)](https://github.com/atsanna/codeigniter4-datatables/actions/workflows/phpstan.yml)\n[![Architecture](https://github.com/atsanna/codeigniter4-datatables/workflows/Deptrac/badge.svg)](https://github.com/atsanna/codeigniter4-datatables/actions/workflows/deptrac.yml)\n[![Coverage Status](https://coveralls.io/repos/github/atsanna/codeigniter4-datatables/badge.svg)](https://coveralls.io/github/atsanna/codeigniter4-datatables)\n[![GitHub license](https://img.shields.io/github/license/atsanna/codeigniter4-datatables)](https://github.com/atsanna/codeigniter4-datatables/blob/main/LICENSE)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/atsanna/codeigniter4-datatables/pulls)\n\nThis is an extension for CodeIgniter 4.2.x to add Datatables support to your application.\n\n## Warning: this is a non-functional experimental version!\n\nThe purpose is to generate the html table and the javascript function for its management with a few lines of code.\n\nIt is possible to define a model to be passed as a dependency in the constructor; this model will be used for the management of columns and queries.\n```php\n    $userModel = new \\atsanna\\Models\\UserModel();\n\n    $table \t= new \\atsanna\\DataTables\\Html\\Table( $userModel );\n```\n\nThere are many configuration possibilities:\n\n- Enable or disable automatic calculation of column width\n- Enable or disable deferred rendering for faster initialization speed\n- Enable or disable the table information display field\n- Enable or disable column sorting\n- Enable or disable table pagination\n- Layout button display options\n- Enable or disable the display of a 'processing' indicator\n- Enable horizontal scrolling\n- Enable vertical scrolling\n- Allow the table to shrink in height when a limited number of rows are displayed\n- Ability to search (filter) feature control\n- Enable or disable server side processing\n- Enable or disable state saving\n- Change the options in the page length selection list\n- Set column specific initialization properties\n\nThe default configuration can be customized as follows:\n```php\n    $table-\u003egetConfiguration()\n            -\u003esetPaging(true)\n            -\u003esetPagingType( 'full_numbers')\n            -\u003esetOrdering(true)\n            -\u003esetInfo(false)\n            -\u003esetSearching(true)\n            -\u003esetLengthMenu('[[10, 25, 50, 100, -1], [10, 25, 50, 100, \"All\"]]')\n            -\u003esetAutoWidth(false)\n            -\u003esetScrollX(true);\n```\n\nIt is possible to customize the rendering:\n```php\n    $data = [\n        'id'        =\u003e $userModel-\u003etable,\n        'class'     =\u003e 'table table-striped table-bordered',\n        'style'     =\u003e 'width: 100%; margin-left: auto; margin-right: auto;',\n        'fields'    =\u003e $userModel-\u003eallowedFields,\n    ];\n\n    echo $table-\u003erender($data);\n```\n\n## See the documentation\n\n[Documentation](https://atsanna.github.io/codeigniter4-datatables/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsanna%2Fcodeigniter4-datatables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatsanna%2Fcodeigniter4-datatables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsanna%2Fcodeigniter4-datatables/lists"}