承接 szepeviktor/composer-envato 相关项目开发

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

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

szepeviktor/composer-envato

最新稳定版本:v1.1.2

Composer 安装命令:

composer require szepeviktor/composer-envato

包简介

Composer plugin for Envato

README 文档

README

Packagist Packagist stats PHPStan

A Composer plugin to load WordPress themes and plugins from Envato.

???? Always the latest version is installed, as Envato does not make other versions available. Package version locking can only be achieved by local persistent cache, not across hosts or users.

Installation

This Composer plugin adds a virtual package repository.

It is recommended to install it globally:

composer global require --update-no-dev szepeviktor/composer-envato

It can also be installed per-project:

composer require --update-no-dev szepeviktor/composer-envato

Configuration

Add all your Envato products as "packages" in either the local composer.json file or the global config.json file (located in $COMPOSER_HOME).

You can find the item-id at the end of product URL-s. e.g. https://themeforest.net/item/avada-responsive-multipurpose-theme/2833226

{ "config": { "envato": { "token": "YOUR ENVATO PERSONAL TOKEN FROM https://build.envato.com/create-token", "packages": { "envato/avada-theme": { "item-id": 2833226, "type": "wordpress-theme" }, "envato/layerslider-plugin": { "item-id": 1362246, "type": "wordpress-plugin" } } } } }

???? Please use the vendor name envato for consistency.

The personal token can also be read from an environment variable or a .env file. Create a .env file, where the composer.json file lives, and add the following:

ENVATO_TOKEN="<YOUR ENVATO PERSONAL TOKEN FROM https://build.envato.com/create-token>"

Usage

Once the plugin is installed and configured, you can simply install any of the listed products as Composer packages.

???? Envato API has dynamic rate limiting

Behind the scenes

  1. This package is a Composer plugin
  2. In the activate method it creates an ArrayRepository with package data from config.json
  3. Package version is queried from Envato API
  4. When installing a package its URL is also queried from Envato API
  • Pretty package version is e.g. v1.2
  • Normalized package version is e.g. 1.2.0.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固