{"id":13771262,"url":"https://github.com/michalsn/codeigniter-htmx-demo","last_synced_at":"2025-08-12T13:05:00.980Z","repository":{"id":64977084,"uuid":"576168135","full_name":"michalsn/codeigniter-htmx-demo","owner":"michalsn","description":"This is a demo for CodeIgniter HTMX helper library.","archived":false,"fork":false,"pushed_at":"2025-07-31T15:48:14.000Z","size":818,"stargazers_count":63,"open_issues_count":1,"forks_count":14,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-07-31T17:42:27.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://michalsn.github.io/codeigniter-htmx/","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/michalsn.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":"2022-12-09T06:54:44.000Z","updated_at":"2025-07-31T13:58:58.000Z","dependencies_parsed_at":"2024-01-12T13:48:57.060Z","dependency_job_id":"c20afaf0-676d-4104-a209-be7c0947afe9","html_url":"https://github.com/michalsn/codeigniter-htmx-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michalsn/codeigniter-htmx-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-htmx-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-htmx-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-htmx-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-htmx-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalsn","download_url":"https://codeload.github.com/michalsn/codeigniter-htmx-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-htmx-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270065426,"owners_count":24520946,"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-08-12T02:00:09.011Z","response_time":80,"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":[],"created_at":"2024-08-03T17:00:49.628Z","updated_at":"2025-08-12T13:05:00.972Z","avatar_url":"https://github.com/michalsn.png","language":"PHP","readme":"# CodeIgniter HTMX Demo\n\nThis is a demo for [CodeIgniter HTMX](https://github.com/michalsn/codeigniter-htmx) helper library. Demo requires:\n\n- CodeIgniter HTMX library installed via composer or manually,\n- CodeIgniter 4.5+\n\n![CodeIgniter HTMX Demo](demo.gif)\n\n#### Available demos:\n\n- **Books** - searching, pagination, inline edit\n- **Tasks** - events\n- **Paragraphs** - sorting, modal edit\n- **Controlled Cells** - widget-like components, signed-urls (the last one requires [CodeIgniter Signed-URL](https://github.com/michalsn/codeigniter-signed-url) library)\n\n## Installation\n\n1. Install [CodeIgniter 4](https://codeigniter.com/) with composer (command below) or [manually](https://codeigniter.com/user_guide/installation/installing_manual.html). \n```console\ncomposer create-project codeigniter4/appstarter codeigniterhtmx\ncd codeigniterhtmx\n```\n2. Install [CodeIgniter HTMX](https://github.com/michalsn/codeigniter-htmx) library with composer (command below) or [manually](https://michalsn.github.io/codeigniter-htmx/installation/#manual-installation).\n```console\ncomposer require michalsn/codeigniter-htmx\n```\n3. Manually download the ZIP file of this project and place it in the desired folder. \n\n   - The example will assume that it will be `codeigniterhtmx/app/ThirdParty/htmx-demo`. \n   - Then enable it by editing the `codeigniterhtmx/app/Config/Autoload.php` file and adding the `Michalsn\\CodeIgniterHtmxDemo` namespace to the `$psr4` array, like in the below example:\n\n```php\n\u003c?php\n\n// ...\n\npublic $psr4 = [\n    APP_NAMESPACE =\u003e APPPATH, // For custom app namespace\n    'Config'      =\u003e APPPATH . 'Config',\n    'Michalsn\\CodeIgniterHtmxDemo' =\u003e APPPATH . 'ThirdParty/htmx-demo/src',\n];\n\n// ...\n```\n\n## Database\n\nFirst, make sure to create a database for the project. You can name it `codeigniterhtmx` and set credentials for the database connection in `codeigniterhtmx/app/Config/Database.php`, see [framework's user guide](https://codeigniter.com/user_guide/database/configuration.html) for more information.\n\nBefore running the examples, you have to migrate the database. Make sure you have set the correct credentials for the database and then run the command:\n```console\nphp spark migrate --all\n```\n\nAnd preferably run the seeds:\n\n**For Unix:**\n```console\nphp spark db:seed Michalsn\\\\CodeIgniterHtmxDemo\\\\Database\\\\Seeds\\\\SeedDemo\n```\n\n**For Windows:**\n```console\nphp spark db:seed Michalsn\\CodeIgniterHtmxDemo\\Database\\Seeds\\SeedDemo\n```\n\n## Running the demo\n\nThe default route to the demo page is `demo`.","funding_links":[],"categories":["Examples by Back-end"],"sub_categories":["PHP"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-htmx-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalsn%2Fcodeigniter-htmx-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-htmx-demo/lists"}