{"id":25873068,"url":"https://github.com/codeinwp/optimole-laravel","last_synced_at":"2025-07-16T22:32:18.818Z","repository":{"id":246248976,"uuid":"811729604","full_name":"Codeinwp/optimole-laravel","owner":"Codeinwp","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-27T19:03:04.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-08T15:59:27.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codeinwp.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":"2024-06-07T07:24:59.000Z","updated_at":"2025-03-26T12:52:41.000Z","dependencies_parsed_at":"2025-05-29T16:19:44.379Z","dependency_job_id":null,"html_url":"https://github.com/Codeinwp/optimole-laravel","commit_stats":null,"previous_names":["codeinwp/optimole-laravel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Codeinwp/optimole-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Foptimole-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Foptimole-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Foptimole-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Foptimole-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeinwp","download_url":"https://codeload.github.com/Codeinwp/optimole-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Foptimole-laravel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265545931,"owners_count":23785881,"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":"2025-03-02T08:29:35.888Z","updated_at":"2025-07-16T22:32:18.813Z","avatar_url":"https://github.com/Codeinwp.png","language":"PHP","readme":"# Optimole Laravel Package\n\n[![Actions Status](https://github.com/Codeinwp/optimole-laravel/workflows/Continuous%20Integration/badge.svg)](https://github.com/Codeinwp/optimole-laravel/actions)\n\n## Requirements\n\n* Laravel \u003e= 9.0\n\n## Installation\n\nInstall the Optimole Laravel Package in your project using composer:\n\n```\n$ composer require codeinwp/optimole-laravel\n```\n\nIf you want, you can publish Optimole's configuration file using the `vendor:publish` command:\n\n```\n$ php artisan vendor:publish --tag=\"optimole-config\"\n```\n\n## Configuration\n\nThe Optimole package will remain inactive until you provide an Optimole API key. You can do this by adding the \n`OPTIMOLE_KEY` variable to your `.env` file:\n\n```\nOPTIMOLE_KEY=your-optmole-api-key\n```\n\nIf you don't have an API key, you can create an account on [Optimole][1] and get your API key.\n\n## Usage\n\nBy default, the Optimole Laravel Package will optimize all images and assets in your Laravel application if they use \nthe [`asset`][2] helper function. The package also provides two helper functions that you can use in your blade \ntemplates. The `optimole_asset` function will return the URL of the optimized CSS or JS files, while the\n`optimole_image` function will return the URL of the optimized image.\n\n[1]: https://optimole.com\n[2]: https://laravel.com/docs/master/helpers#method-asset\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeinwp%2Foptimole-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeinwp%2Foptimole-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeinwp%2Foptimole-laravel/lists"}