Download the PHP package gwa/wpsh without Composer

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

wpsh

A command line tool for local WordPress development.

Introduction

wpsh is a command line tool we use to sync the database and uploaded files from a remote (PRODUCTION) WordPress install to a local (DEVELOPMENT) install.

It was inspired by Drupal's drush tool.

Prerequisites

You will need:

Installation

Install globally using composer.

Test that wpsh is installed:

You should see some usage help output.

Setup

Aliases

Site "aliases" contain the configuration for a site, either remote or local. wpsh looks for site aliases in ~/.wpsh.

First create the directory in your HOME directory.

Create a file called in ~/.wpsh called alias.[mysite].php.

mysite can contain alphanumeric characters, hyphens and periods.

MySQL cnf files

We use cnf files to store MySQL credentials.

You can save these in one of the default paths (see MySQL docs), or in a custom path that is defined in the site alias' cnf path.

Example:

Usage

The following commands are available.

sa

Lists available aliases.

mysqldump

Creates a mysql dump file.

mysqlsync

Syncs DB from @alias1 to @alias2.

Updates settings and URLs in posts with the local settings and URLs.

rsync

Syncs uploads from @alias1 to @alias2.

TODOs

[ ] Provide hook mechanism for custom scripts / MySQL queries to be executed after sync.


All versions of wpsh with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ^3.1
symfony/filesystem Version ^3.1
symfony/process Version ^3.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 gwa/wpsh contains the following files

Loading the files please wait ....