Download the PHP package anystack-sh/porter without Composer

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

Total Downloads Latest Stable Version License

About Porter

Porter is a command-line interface (CLI) tool that makes it easy to run background services by adding a few lines to a configuration file. These services are managed by Supervisord, a process control system that ensures that all processes are kept up and running. With Porter, you don't have to manually start and manage background services in multiple terminal tabs. Instead, you can simply use the porter command to manage all of your services in a single place.

Installation

To install Porter, you can use composer or download the build manually from this repository.

Requirements

To use Porter you must install supervisord:

If you want to use the watch feature to restart services when files change you will also need to install:

Add your first project

In your terminal navigate to your project and run porter init to create a boilerplate porter.yml:

Modify porter.yml and add the services you want to run. In your terminal navigate to your project and run porter add:

A new porter.yml has been created. This file contains all the services you want to run in the background, for example:

The following properties are available per command:

Property Description Required
name Shortname that describes your service. Yes
directory Set the working directory, defaults to porter.yml directory. No
command The command to run relative to the root of your project or custom defined directory. Yes
restart
- minutes After how many minutes the service should restart. No
- watch Restart service if files or directories are modified. No
processes Set the number of parallel processes for the service. Defaults to 1. No
environment Set custom environment variables No

If you have made changes to your porter.yml you can use the porter restart command to apply your changes.

Monitoring services

To monitor your services you can use the porter status command.

Tail service logs

Basic tail usage

You can tail one or more services (unified) using the porter tail command.

This command is context-aware and will automatically ask which services you want to tail:

Tail all available services

To automatically tail all available services, pass the --all option:

Tail one or more services

You can specify one or more services that you would like to tail by passing
the --services option with a comma-separated list of service indexes or service names.

You can find the index and name of each available service by running porter tail with no arguments:

The following examples reference the service names and indexes found above:

The above two commands are functionally equivalent.

The above two commands are functionally equivalent.

All available commands

Command Description
porter add Add current directory as a new application.
porter remove Remove current application services.
porter start Start all services.
porter restart Restart one or multiple services.
porter stop Stop all services.
porter tail Tail service logs.

Brought to you by Anystack

Anystack is the all-in-one product platform that helps you make a living by writing code. Push your code to GitHub, and we will take care of everything else. Start your adventure today.

License

Porter is open-sourced software licensed under the MIT license.


All versions of porter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 anystack-sh/porter contains the following files

Loading the files please wait ....