Download the PHP package trendyminds/blacksmith-cli without Composer

On this page you can find all versions of the php package trendyminds/blacksmith-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 blacksmith-cli

⚒️ Blacksmith CLI

A Forge-provisioning CLI tool for sandboxes

✅ Requirements

When provisioning a sandbox you'll need:

It is imperative to leverage GitHub secrets to ensure you are not commit this type of sensitive data to your codebase and potentially exposing this data to the outside world.

🚀 Creating and destroying sandboxes

Below is an example of a GitHub action that will create a new sandbox when it is labeled with a "sandbox" tag in the pull request. When the pull request is closed it will run the decommission action.

⚙️ Configuration options

Environment Name Default value Description
FORGE_TOKEN The API token to use to authenticate to your Forge account
FORGE_SERVER The ID of the server to use when provisioning new sites
FORGE_APP_ID The prefix for your domain and database
FORGE_PR_NUMBER The PR number for your sandbox pull request
FORGE_PHP_VERSION php83 The version of PHP to use
FORGE_DOMAIN The domain to use (Ex: domain.com)
FORGE_INSTALL_SSL false When enabled, a Let's Encrypt SSL will be provisioned for the domain
FORGE_DEPLOY_SCRIPT Additional steps to add to your deploy process. Use ; to delineate between steps (Ex: npm install; npm run build)
FORGE_ENV_VARS Environment variables to append (or replace if they already exist)
FORGE_COMPOSER_INSTALL_ON_MOUNT true If composer install should be ran when the repo is mounted.
FORGE_ENABLE_DB false Whether your site needs a database. If true one will be created for you and shared in the post-deploy comment
FORGE_DB_PASSWORD The master password for your forge database user. This will be placed into your project's .env automatically
FORGE_BACKUP_PROVIDER When set and when your sandbox uses a database it will be backed up to this provider. Accepts s3 or spaces
FORGE_BACKUP_REGION The region for the backup service you are using
FORGE_BACKUP_BUCKET The bucket to use for the backup
FORGE_BACKUP_ACCESS_KEY The access key for connecting to the bucket
FORGE_BACKUP_SECRET_KEY The secret key for connecting to the bucket
FORGE_GITHUB_TOKEN Used to create a post-deploy comment within the pull request
FORGE_REPO The GitHub repo to deploy and mount for the sandbox generation (Ex: myorg/repo)
FORGE_BRANCH The branch to use when mounting your repo to the site
FORGE_POST_MOUNT_COMMANDS Commands to run after the repository is first mounted. Use ; to delineate between steps (Ex: ls -lah; echo 'hi')
FORGE_PATH_TO_COMPOSER_FILE The path to your composer.json file if not in the root of the project (Ex: src/)

🔒 Backups

Unfortunately, Forge's backup configuration and storage processes are asynchronous and, because of this, a lengthy and arbitrary sleep() method is used when running these. That means it's possible a database backup when your sandbox is decommissioned may not complete successfully. For tried-and-true backups consider running a separate backup process on Forge to ensure you have a method to restore databases if necessary.

Statamic notes

Git Automation

Git automation should be enabled by including STATAMIC_GIT_AUTOMATIC in your environment variables and setting it to false.

This means content commits have to be manually performed by visiting Utilties > Git. However, it greatly simplifies your sandbox:

  1. You do not need to run Redis in every Statamic sandbox you create handling queued commits
  2. You do not need to commit every single content save to your pull request if you do not queue your commits

While STATAMIC_GIT_AUTOMATIC=false means some occasional manual labor, it makes the setup simpler and also enables you to create Statamic sandboxes that shouldn't have committed sandbox changes.


All versions of blacksmith-cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2.0
illuminate/http Version ^11.35
illuminate/validation Version ^11.36
intonate/tinker-zero Version ^1.2
laravel/forge-sdk Version ^3.19
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 trendyminds/blacksmith-cli contains the following files

Loading the files please wait ....