Download the PHP package naffiq/rocket-tools without Composer

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

RocketTools

This little php script helps you generate and manage nginx configuration for your project.

Installation

Via composer

Install this project globally by running

Make sure, that you have your composer's bin directory linked to your PATH environment variable.

Download PHAR executable

You can get the latest version this utility on releases page. Just grab rocket-tools.phar and put it to your /usr/local/bin directory (if you're on macOS/Linux) or just any folder listed in your PATH on Windows.

Usage

Check the version by running

Generate nginx configurations

You can create nginx config in sites-available for your Yii2 project (basic for now) by running

This command takes following arguments:

You can override defaults by configuring rocket-tools with [config:update](#Configuring RocketTools) command.

Link/unlink nginx sites available

Run this command to link config from sites-available to sites-enabled folder:

Arguments:

To unlink config run:

Arguments:

You can override defaults by configuring rocket-tools with [config:update](#Configuring RocketTools) command.

Configuring RocketTools

To override default configurations run:

Arguments:

So in order to override nginx:generate configurations simply take it's argument (for example sites-available), add nginx- prefix to it and use it as configuration key. The only exception is fast-cgi-pass, which is related to php-fpm and hand

Example:

There is also a command for viewing your current configuration:

Arguments:

Configuration files

All of the configuration files are stored in $HOME/.rocket-tools/ directory. If you want to change it, set ROCKET_TOOLS_HOME environment variable to desired path.

Updating RocketTools

If you are using composer run:

Just like composer.phar, rocket-tools.phar file contains self-update command, if you manually downloaded it from releases page.

Under the hood:

TODO:

License: MIT

Crafted with ♥


All versions of rocket-tools with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ^3.2
padraic/phar-updater Version ^1.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 naffiq/rocket-tools contains the following files

Loading the files please wait ....