承接 codeinwp/optimole-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codeinwp/optimole-laravel

Composer 安装命令:

composer require codeinwp/optimole-laravel

包简介

Integrate Optimole cloud-based image optimization service with your Laravel application

README 文档

README

Actions Status

Requirements

  • Laravel >= 9.0

Installation

Install the Optimole Laravel Package in your project using composer:

$ composer require codeinwp/optimole-laravel

If you want, you can publish Optimole's configuration file using the vendor:publish command:

$ php artisan vendor:publish --tag="optimole-config"

Configuration

The Optimole package will remain inactive until you provide an Optimole API key. You can do this by adding the OPTIMOLE_KEY variable to your .env file:

OPTIMOLE_KEY=your-optmole-api-key

If you don't have an API key, you can create an account on Optimole and get your API key.

Usage

By default, the Optimole Laravel Package will optimize all images and assets in your Laravel application if they use the asset helper function. The package also provides two helper functions that you can use in your blade templates. The optimole_asset function will return the URL of the optimized CSS or JS files, while the optimole_image function will return the URL of the optimized image.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固