{"id":15470519,"url":"https://github.com/jaxon-php/jaxon-codeigniter","last_synced_at":"2025-10-04T00:22:53.904Z","repository":{"id":50617166,"uuid":"60431757","full_name":"jaxon-php/jaxon-codeigniter","owner":"jaxon-php","description":"Jaxon library integration for the CodeIgniter framework https://www.jaxon-php.org.","archived":false,"fork":false,"pushed_at":"2025-06-24T23:12:04.000Z","size":82,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-22T01:49:41.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaxon-php.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,"zenodo":null}},"created_at":"2016-06-04T21:52:48.000Z","updated_at":"2025-06-24T23:08:21.000Z","dependencies_parsed_at":"2024-11-15T20:25:24.625Z","dependency_job_id":"b123aacd-94b7-4c04-aa8a-287ba1f40d35","html_url":"https://github.com/jaxon-php/jaxon-codeigniter","commit_stats":{"total_commits":108,"total_committers":1,"mean_commits":108.0,"dds":0.0,"last_synced_commit":"9648c7ff00cd58ad61b2e2ba121bab7bc4f2740b"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/jaxon-php/jaxon-codeigniter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-codeigniter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-codeigniter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-codeigniter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-codeigniter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaxon-php","download_url":"https://codeload.github.com/jaxon-php/jaxon-codeigniter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxon-php%2Fjaxon-codeigniter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278247085,"owners_count":25955398,"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-10-03T02:00:06.070Z","response_time":53,"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-10-02T02:05:12.923Z","updated_at":"2025-10-04T00:22:53.877Z","avatar_url":"https://github.com/jaxon-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Jaxon integration for CodeIgniter 4\n===================================\n\nThis package integrates the [Jaxon library](https://github.com/jaxon-php/jaxon-core) into the CodeIgniter 4 framework.\n\nInstallation\n------------\n\nThe version 4 of the package requires CodeIgniter version 4.\n\nInstall the package with `Composer`.\n\n```bash\ncomposer require jaxon-php/jaxon-codeigniter ^4.0\n```\nOr\n```json\n{\n    \"require\": {\n        \"jaxon-php/jaxon-codeigniter\": \"^4.0\",\n    }\n}\n```\nAnd run `composer install`.\n\nFilter\n------\n\nThis package provides a filter that must be attached to the routes to all the pages where the Jaxon features are enabled.\n\nIn the `app/Config/Routes.php` file, a route must be defined for Jaxon requests.\n\n```php\n// Add the Jaxon filter to Jaxon-enabled routes.\n$routes-\u003eget('/', 'Demo::index', ['filter' =\u003e JaxonConfigFilter::class]);\n\n// Jaxon request processing route.\n$routes-\u003epost('/jaxon', 'Demo::jaxon', ['filter' =\u003e JaxonConfigFilter::class]);\n```\n\nThis is an example of a CodeIgniter controller using the Jaxon library.\n\n```php\nnamespace App\\Controllers;\n\nuse Jaxon\\Demo\\Ajax\\Bts;\nuse Jaxon\\Demo\\Ajax\\Pgw;\n\nuse function view;\n\nclass Demo extends BaseController\n{\n    public function index()\n    {\n        $jaxon = jaxon()-\u003eapp();\n\n        // Print the page\n        return view('demo/index', [\n            'jaxonCss' =\u003e $jaxon-\u003ecss(),\n            'jaxonJs' =\u003e $jaxon-\u003ejs(),\n            'jaxonScript' =\u003e $jaxon-\u003escript(),\n            'pageTitle' =\u003e \"CodeIgniter Framework\",\n            // Jaxon request to the Bts Jaxon class\n            'bts' =\u003e $jaxon-\u003erequest(Bts::class),\n            // Jaxon request to the Pgw Jaxon class\n            'pgw' =\u003e $jaxon-\u003erequest(Pgw::class),\n        ]);\n    }\n\n    public function jaxon()\n    {\n        $jaxon = jaxon()-\u003eapp();\n        if(!$jaxon-\u003ecanProcessRequest())\n        {\n            // Jaxon failed to find a plugin to process the request\n            return; // Todo: return an error message\n        }\n\n        return $jaxon-\u003eprocessRequest();\n    }\n}\n```\n\nConfiguration\n------------\n\nCopy the `config/Jaxon.php` file in this package to the `app/Config` dir of the CodeIgniter app.\n\nThe settings in the `config/Jaxon.php` config file are separated into two sections.\nThe options in the `lib` section are those of the Jaxon core library, while the options in the `app` sections are those of the CodeIgniter application.\n\nThe following options can be defined in the `app` section of the config file.\n\n| Name | Description |\n|------|---------------|\n| directories | An array of directory containing Jaxon application classes |\n| views   | An array of directory containing Jaxon application views |\n| | | |\n\nBy default, the `views` array is empty. Views are rendered from the framework default location.\nThere's a single entry in the `directories` array with the following values.\n\n| Name | Default value | Description |\n|------|---------------|-------------|\n| directory | 'jaxon/ajax' | The directory of the Jaxon classes |\n| namespace | \\Jaxon\\Ajax  | The namespace of the Jaxon classes |\n| separator | .           | The separator in Jaxon class names |\n| protected | empty array | Prevent Jaxon from exporting some methods |\n| | | |\n\nUsage\n-----\n\n### The Jaxon classes\n\nThe Jaxon classes can inherit from `\\Jaxon\\App\\CallableClass`.\nBy default, they are located in the `jaxon/app` dir of the CodeIgniter application, and the associated namespace is `\\Jaxon\\Ajax`.\n\nThis is a simple example of a Jaxon class, defined in the `jaxon/ajax/HelloWorld.php` file.\n\n```php\nnamespace Jaxon\\Ajax;\n\nclass HelloWorld extends \\Jaxon\\App\\CallableClass\n{\n    public function sayHello()\n    {\n        $this-\u003eresponse-\u003eassign('div2', 'innerHTML', 'Hello World!');\n    }\n}\n```\n\nContribute\n----------\n\n- Issue Tracker: github.com/jaxon-php/jaxon-codeigniter/issues\n- Source Code: github.com/jaxon-php/jaxon-codeigniter\n\nLicense\n-------\n\nThe package is licensed under the BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxon-php%2Fjaxon-codeigniter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaxon-php%2Fjaxon-codeigniter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxon-php%2Fjaxon-codeigniter/lists"}