Download the PHP package hotmeteor/eco-cli without Composer

On this page you can find all versions of the php package hotmeteor/eco-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eco-cli

Eco allows you and your team to effortlessly and securely share non-production environment variables, without the overhead of setting up dedicated secrets servers.

What's this for?

Have you ever...

If you answered "yes" to any of these then Eco is for you!

Important: Eco is not a secure mechanism for storing and sharing production-level environment variables. It's not. Please don't.

How it works

Eco is actually pretty simple. It operates using 3 different storage mechanisms:

  1. Your project .env file. This is where the values you're actually using live, because your project depends on them.
  2. Your local "vault". The vault is a local config file where you can permanently store any environment variable you don't want to lose. This gives you the ability to nuke your .env file and then just pull in the keys you want to restore.
  3. The remote .eco file. When you push keys you want shared by the team, Eco creates an .eco file in the root of your repo, directly in the master branch. Inside the .eco file are your shared keys, all encrypted using the same strategy used by Github when storing repository secrets. This file will store unique key:value pairs that your team pushes to it.

Documentation

Installation

Eco CLI may be installed globally or on a per-project basis using Composer:

Getting Started

Once Eco is installed it needs to be set up. Ideally, this is done within the folder for the project you are collaborating on.

There are different setups depending on what code host your team uses.

Github

Github requires a personal access token.

  1. Create a Github Personal Access Token is required.
    • Choose repo and read:org permissions

Gitlab

Gitlab requires a personal access token and a Deploy Key.

  1. Create a Personal Access Token: https://gitlab.com/profile/personal_access_tokens
    • Choose api privileges
  2. Create a Deploy Key for your project: https://gitlab.com/[group]/[project]/-/settings/repository
    • Name it eco-cli
    • Make sure "Write access allowed" is checked

Bitbucket

Bitbucket requires an App Password and an Access Key.

  1. Create an App Password: https://bitbucket.org/account/settings/app-passwords/
    • Select:
      • Account Email, Read
      • Project Read
      • Repositories Read, Write, Admin
  2. Create an Access Key for your project: https://bitbucket.org/[workspace]/[project]/admin/access-keys/
    • Name it eco-cli
  3. When authenticating Eco, your credentials will be your typical Bitbucket username and your new app password.

Usage

Eco comes with a number of commands to manage local and remote environment variables.

Setup

The first thing you run after installing.

You will be asked to select the code host your team uses, as well as provide the proper credentials. You will then be asked to select the owner or organization to act under, as well as the repository for the current project.

View all the values in your Vault.

Organizations

List available organizations you're a member of and allow you switch to a different one.

Show the current working organization.

Repositories

List available repositories in your organization.

List available repositories in your organization and allow you switch to a different repo. This allows you to use Eco across different repositories. Just don't forget to switch repos before pushing or pulling!

Show the current working repository.

Keys

Fetch the .env.example file from your project repository and copy it as your new local .env file. This is a desctructive command, so you are asked to confirm.

Create or update a key:value pair in your local vault and will add it to your local .env file.

Remove a key:value pair from your local vault and will remove it from your local .env file.

Push a key:value pair into the remote .eco file.

Sync all key:value pairs from the remote .eco file with your local .env file. You will be asked to confirm before overwriting any local values with remote values.

Contributing

If you're interested in contributing to Eco, please read our contributing guide.

Acknowledgments

Built on the fantastic Laravel Zero framework by @nunomaduro

Inspired by the work done on the Vapor CLI, which provided some foundational code for this CLI.


All versions of eco-cli with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
ext-json Version *
ext-sodium Version *
bitbucket/client Version ^3.1
guzzlehttp/guzzle Version ^7.0.1
hotmeteor/eco-env Version ^1.1
http-interop/http-factory-guzzle Version ^1.0
illuminate/container Version ^8.0
illuminate/filesystem Version ^8.0
illuminate/log Version ^8.0
illuminate/support Version ^8.0
knplabs/github-api Version ^3.0
laminas/laminas-text Version ^2.7
laravel-zero/framework Version ^8.0
m4tthumphrey/php-gitlab-api Version ^10.0
padraic/phar-updater Version ^1.0.6
ramsey/uuid Version ^3.7|^4.0
symfony/console Version ^4.2|^5.0
symfony/process Version ^4.2|^5.0
symfony/var-dumper Version ^4.2|^5.0
symfony/yaml Version ^4.2|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hotmeteor/eco-cli contains the following files

Loading the files please wait ....