{"id":20717545,"url":"https://github.com/roliod/codeigniter-asset-versioning","last_synced_at":"2026-04-20T03:37:25.478Z","repository":{"id":62536996,"uuid":"131590651","full_name":"roliod/codeigniter-asset-versioning","owner":"roliod","description":"Simple Asset Versioning in Codeigniter","archived":false,"fork":false,"pushed_at":"2018-10-18T10:42:22.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T04:07:01.635Z","etag":null,"topics":["assets","assets-management","codeigniter"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/roliod/codeigniter-asset-versioning","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/roliod.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":"2018-04-30T12:02:37.000Z","updated_at":"2020-07-16T22:41:27.000Z","dependencies_parsed_at":"2022-11-02T16:01:13.295Z","dependency_job_id":null,"html_url":"https://github.com/roliod/codeigniter-asset-versioning","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/roliod/codeigniter-asset-versioning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roliod%2Fcodeigniter-asset-versioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roliod%2Fcodeigniter-asset-versioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roliod%2Fcodeigniter-asset-versioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roliod%2Fcodeigniter-asset-versioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roliod","download_url":"https://codeload.github.com/roliod/codeigniter-asset-versioning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roliod%2Fcodeigniter-asset-versioning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["assets","assets-management","codeigniter"],"created_at":"2024-11-17T03:09:13.534Z","updated_at":"2026-04-20T03:37:25.458Z","avatar_url":"https://github.com/roliod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codeigniter-asset-versioning\nThis package can be used to force browser refresh of assets when cached in the users browser utilising an asset versioning technique. The version number used is the assets last modified timestamp.\n\n\n## Installation\n\nInstalling Composer..\n\n```\n$ curl -sS https://getcomposer.org/installer | php\n$ sudo mv composer.phar /usr/local/bin/composer\n```\n_You are not obliged to move the `composer.phar` file to your `/usr/local/bin`, it is however considered easy to have an global installation._\n\nAdd the following to your require block in `composer.json` config\n\n```json\n\"roliod/codeigniter-asset-versioning\": \"^1.0\"\n```\n\n__If your new to composer and have no clue what I'm talking about__\n\nJust create a file named `composer.json` in your document root:\n\n```json\n{\n    \"require\": {\n        \"roliod/codeigniter-asset-versioning\": \"^1.0\"\n    }\n}\n```\n\nNow let's install the package:\n\n```\ncomposer install\n```\n\nYou can also install by using:\n\n```\ncomposer require roliod/codeigniter-asset-versioning\n```\n\nLastly, run this command when the package has been successfully installed:\n\n```\nphp vendor/roliod/codeigniter-asset-versioning/install.php\n```\nThat's all !\n\n## Installation (Manual)\n\n* copy src/helpers/asset_helper.php to application/config\n* copy src/libraries/asset.php to application/libraries\n\n## Configuration (Autoload)\n\nThe autoload file is located at application/config/\n\n* add 'asset' to libraries\n* add 'asset' to helpers\n\n`$autoload['libraries'] = array('asset');`\n\n`$autoload['helpers'] = array('asset');`\n\n## Configuration (Config)\n\nThe config file is located at application/config/\n\n* add a 'base_url' config\n\n`$config['base_url'] = 'https://mywebsite.com'`\n\n## Usage\n\n* CSS: `\u003clink href=\"\u003c?php echo version_url('path/to/css/file') ?\u003e\" rel=\"stylesheet\" type=\"text/css\" /\u003e`\n* JS: `\u003cscript src=\"\u003c?php echo version_url('path/to/js/file') ?\u003e\" type=\"text/javascript\"\u003e\u003c/script\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froliod%2Fcodeigniter-asset-versioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froliod%2Fcodeigniter-asset-versioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froliod%2Fcodeigniter-asset-versioning/lists"}