Download the PHP package tj-digital/mimir without Composer

On this page you can find all versions of the php package tj-digital/mimir. 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 mimir

Mímir v4

A portable bash setup script for new GAIN WordPress projects. Handles WordPress core installation, Erebus parent theme setup, child theme scaffolding, and git initialisation — all via WP-CLI.


Prerequisites

Ensure the following are available in your environment before running the script:

Tool Install Notes
WP-CLI brew install wp-cli wp --info should return without error
Git brew install git
PHP 8.2+ via Valet or Homebrew
MySQL / MariaDB via Valet or Docker Server must be running before mimir is invoked
MySQL client brew install mysql-client Required by WP-CLI for database operations — see note below

MySQL client note: WP-CLI's database commands require the mysql binary to be available in your PATH, even when MySQL is already running via Valet or Docker. Install the client tools with brew install mysql-client. Homebrew installs this as keg-only (not auto-linked), but the script handles that automatically.


Installation

Install mimir as a global command once, then use it for every new project:

This downloads setup.sh to /usr/local/bin/mimir and prompts for your password (sudo required to write there). You only need to do this once per machine.

To install a specific version:

Updating

To pull in the latest release:

To update to a specific version:

Both commands fetch setup.sh from the corresponding GitHub release tag and reinstall it to /usr/local/bin/mimir.


Usage

From an empty directory that will become your project root:

To check the currently installed version:

Local development (without global install)

If you have the repo cloned locally, you can symlink the script instead of installing a static copy — any changes you make to the repo are reflected immediately:


What the script does

The interactive wizard walks through the following steps in order:

  1. Requirements check — verifies WP-CLI, Git, and PHP are available
  2. Database configuration — DB name, user, password, and host
  3. Site configuration — URL, title, admin credentials
  4. WordPress core — downloads core (en_GB), generates wp-config.php, creates the database, runs the install
  5. Theme setup — clones Erebus as the parent theme, scaffolds a child theme with the correct Template: header
  6. Deploy workflow — copies deploy.yml from the Mimir repo into .github/workflows/
  7. Git initialisation — writes a .gitignore, makes the initial commit on main, optionally sets a remote and pushes
  8. (Placeholder) Plugin installation
  9. (Placeholder) Optional WP settings configuration
  10. (Placeholder) Front-end build dependency installation

After setup

Navigate into the Erebus parent theme directory and follow its README to install and run the front-end build:


wp-config.php

wp-config.php is intentionally excluded from version control. It should be created per-environment:


TODO

The following are planned additions. Each has a placeholder stub in setup.sh marked with a TODO comment.


Troubleshooting

env: mysql: No such file or directory WP-CLI needs the mysql binary even when MySQL is already running. Install the client tools:

The script adds /opt/homebrew/opt/mysql-client/bin to PATH automatically, so no further config is needed.


Error: Database connection error (2002) No such file or directory PHP is trying to connect via a Unix socket but can't find it. Use 127.0.0.1 instead of localhost as the DB host — this forces a TCP connection which works reliably with both Valet and Docker.


Error: WordPress files seem to already be present here The script is resumable — re-run mimir from the same directory and it will skip any steps that already completed (WP download, config, DB creation, theme setup) and continue from where it left off.


Deprecation notices in WP-CLI output The script filters PHP deprecation and notice lines from WP-CLI output automatically. If you still see them, ensure you are running the latest version of the script (mimir --help shows the version).


Contributing

Branch from main, open a PR, and tag the GAIN dev team for review.


All versions of mimir with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
wp-cli/wp-cli-bundle Version *
symfony/dotenv Version ^7.0
timber/timber Version ^2.0
eleven-miles/zeus Version ^1.3
eleven-miles/nemesis Version ^1.1
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 tj-digital/mimir contains the following files

Loading the files please wait ...