{"id":15307857,"url":"https://github.com/datamweb/codeigniter-htmx-demo","last_synced_at":"2025-10-08T14:31:55.522Z","repository":{"id":64972885,"uuid":"580158343","full_name":"datamweb/codeigniter-htmx-demo","owner":"datamweb","description":"This is a demo for CodeIgniter HTMX helper library.","archived":false,"fork":true,"pushed_at":"2023-09-05T23:12:40.000Z","size":810,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-02T08:12:19.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://michalsn.github.io/codeigniter-htmx/","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"michalsn/codeigniter-htmx-demo","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datamweb.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":"2022-12-19T21:32:17.000Z","updated_at":"2023-03-11T15:15:17.000Z","dependencies_parsed_at":"2023-01-29T23:40:48.428Z","dependency_job_id":null,"html_url":"https://github.com/datamweb/codeigniter-htmx-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamweb%2Fcodeigniter-htmx-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamweb%2Fcodeigniter-htmx-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamweb%2Fcodeigniter-htmx-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamweb%2Fcodeigniter-htmx-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datamweb","download_url":"https://codeload.github.com/datamweb/codeigniter-htmx-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235724067,"owners_count":19035633,"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":[],"created_at":"2024-10-01T08:12:24.383Z","updated_at":"2025-10-08T14:31:50.177Z","avatar_url":"https://github.com/datamweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"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.3 or later version.\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 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 correct credentials to 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`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamweb%2Fcodeigniter-htmx-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamweb%2Fcodeigniter-htmx-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamweb%2Fcodeigniter-htmx-demo/lists"}