Download the PHP package foliolabs/folioshell without Composer

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

FolioShell - WordPress Command Line Tools

This is a script developed by Foliolabs Team to ease the management of WordPress sites.

It is designed to work on Linux and MacOS. Windows users can use it in Nooku Vagrant box

Installation

  1. Download or clone this repository.

  2. Make the folioshell command executable:

    $ chmod u+x /path/to/folioshell/bin/folioshell

  3. Configure your system to recognize where the executable resides. There are 3 options:

    1. Create a symbolic link in a directory that is already in your PATH, e.g.:

      $ ln -s /path/to/folioshell/bin/folioshell /usr/bin/folioshell

    2. Explicitly add the executable to the PATH variable which is defined in the the shell configuration file called .profile, .bash_profile, .bash_aliases, or .bashrc that is located in your home folder, i.e.:

      export PATH="$PATH:/path/to/folioshell/bin:/usr/local/bin"

    3. Add an alias for the executable by adding this to you shell configuration file (see list in previous option):

      $ alias folioshell=/path/to/folioshell/bin/folioshell

    For options 2 and 3 above, you should log out and then back in to apply your changes to your current session.

  4. Test that folioshell executable is found by your system:

    $ which folioshell

  5. From folioshell root (/path/to/folioshell), run Composer to fetch dependencies.

    $ composer install

For available options, try running:

folioshell --list

Usage

Create Sites

To create a site with the latest WordPress version, run:

folioshell site:create testsite

The newly installed site will be available at /var/www/testsite and testsite.dev after that. You can login into your fresh WordPress installation using these credentials: admin / admin.

By default the web server root is set to /var/www. You can pass --www=/my/server/path to commands for custom values.

You can choose the WordPress version to be installed:

folioshell site:create testsite --wordpress=4.2

You can pick any branch from the Git repository (e.g. master, staging) using this command.

You can also add your projects into the new site by symlinking. See the Symlinking section below for detailed information.

folioshell site:create testsite --symlink=project1,project2

For more information and available options, try running:

folioshell site:create --help

Delete Sites

You can delete the sites you have created by running:

folioshell site:delete testsite

Symlink Plugins

Let's say you are working on your own WordPress component called Awesome and want to develop it with the latest WordPress version.

By default your code is assumed to be in ~/Projects. You can pass --projects-dir=/my/code/is/here to commands for custom values.

Please note that your source code should resemble the WordPress wp-content folder structure for symlinking to work properly. For example, plugins folder should reside in ~/Projects/projectname/code/plugins/projectname.

Now to create a new site, execute the site:create command and add a symlink option:

folioshell site:create testsite --symlink=projectname

Or to symlink your code into an existing site:

folioshell extension:symlink testsite projectname

This will symlink all the folders from the projectname folder into testsite.dev.

Run discover install to make your component available to WordPress and you are good to go!

For more information on the symlinker, run:

folioshell extension:symlink  --help

Install Plugins

You can install plugins from WordPress's Official Plugin Repository on command line to install plugins.

folioshell extension:install testsite pluginslug

You need to use the unique slug of the plugin.

For more information, run:

folioshell extension:install --help

Alternatively, you can install plugins using packages or url using the extension:installfile command. Example:

folioshell extension:installfile testsite /home/vagrant/pluginone.v1.x.zip /home/vagrant/plugintwo.v2.x.tar.gz

And as URL

folioshell extension:installfile testsite http://url.com/to/pluginone.v1.x.zip http://url.com/to/plugintwo.v2.x.tar.gz

This will install both the pluginone.v1.x.zip and plugintwo.v2.x.tar.gz packages.

Activate Plugins

extension:install and extension:installfile automatically activates the plugin.

Extra commands

There a few other commands available for you to try out as well :

Requirements

Contributing

Fork the project, create a feature branch, and send us a pull request.

Authors

See the list of contributors.

License

The foliolabs/folioshell repository is licensed under the MPL v2 license - see the LICENSE file for details.


All versions of folioshell with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
symfony/console Version ^4.0|^5.0
symfony/yaml Version ^4.0
wp-cli/core-command Version ^2.0
wp-cli/extension-command Version ^2.0
wp-cli/entity-command Version ^2.0
wp-cli/config-command Version ^2.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 foliolabs/folioshell contains the following files

Loading the files please wait ....