Download the PHP package mmz-srf/sbs without Composer

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

SBS - Super Build Script

SBS allows to build just parts of a mono repo in a CI environment.

E.g. you have a React application and a PHP backend in the same repository. When the repository gets built, the PHP Unit tests get executed and also the React Application gets built and tested. This always happens when you push something to the master branch.

Building the React app when only a PHP file is modified is not needed.

SBS allows to define conditions when a certain build step is needed and executes only the needed parts.

The build steps are defined in a YAML file the root directory.

sbs.yml

composer:
    title: Composer dependencies
    cmd: "composer install"
    files:
        - composer.lock
    output: vendor 

This defines a build step named composer. It gets only executed if the file composer.lock gets modified. In this case the command composer install gets executed.

When to build a build step

SBS decides if it has to build the build step according to the specification in sbs.yml SBS can decide this according to:

SBS stores the hashes of the build afterwards in a file called sbs.built.json in the given output directory of the build step. (eg vendor/sbs.built.json) in this case. This is used to check if the build step is needed to be built in the next run.

SBS does this:

Configuration reference

buildstep:
    title: the title which gets displayed on building, defaults to build step name
    cmd: the command to build this build step, required
    timeout: seconds the command has to execute before it timeouts, defaults to 3600
    working_dir: if the working directory of the command is not the project root, specify it here
    clear: if the output directly should be cleared before building, defaults to false
    output: where SBS writes the information which last state of the build step is built, required
    depends_on: name of other build step which hash gets included
    commit: tells SBS to look if there is a new commit hash on a certain repository
        repo: the link to the repository
        branch: the branch name
    files: list of files or directory                    

Installation and usage

composer require mmz-srf/sbs --dev

To create an initial sbs.yml:

vendor/bin/sbs init

To build the build steps:

vendor/bin/sbs

To build only one specific step:

vendor/bin/sbs build buildStepName

To force to build all build steps

vendor/bin/sbs --force

All versions of sbs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-json Version *
symfony/console Version ^2.7 || ^3.0 || ^4.0 || ^5.0
symfony/yaml Version ^2.7 || ^3.0 || ^4.0 || ^5.0
symfony/process Version ^2.7 || ^3.0 || ^4.0 || ^5.0
symfony/finder Version ^2.7 || ^3.0 || ^4.0 || ^5.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 mmz-srf/sbs contains the following files

Loading the files please wait ....