Download the PHP package szepeviktor/composer-envato without Composer
On this page you can find all versions of the php package szepeviktor/composer-envato. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download szepeviktor/composer-envato
More information about szepeviktor/composer-envato
Files in szepeviktor/composer-envato
Informations about the package composer-envato
Composer plugin for Envato
A Composer plugin to load WordPress themes and plugins from Envato.
:bulb: 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:
It can also be installed per-project:
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
:bulb: 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:
Usage
Once the plugin is installed and configured, you can simply install any of the listed products as Composer packages.
:bulb: Envato API has dynamic rate limiting
Behind the scenes
- This package is a Composer plugin
- In the
activate
method it creates anArrayRepository
with package data fromconfig.json
- Package version is queried from Envato API
- 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
All versions of composer-envato with dependencies
composer-plugin-api Version ^2.0
composer/installers Version ^1.10 || ^2.0
vlucas/phpdotenv Version ^4.3 || ^5.5