Download the PHP package pxp/trunk without Composer

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

Trunk

As developers, it's very rare that we're working on a single project with a known, memorable set of tools. Some of our projects might be using PHPStan, others might be using Psalm. We might have older projects running PHP-CS-Fixer, but our newer ones are running Pint.

What if it didn't matter anymore? What if you could instead use a single command and have it work for all of your projects? Introducing Trunk.

Trunk provides a set of commands that handle the difficult things for you. You can use the same set of commands on all of your projects, regardless of the tools being used.

Installation

Composer (recommended)

Install Trunk using Composer:

Installing this package will ask for a plugin named pact-foundation/composer-downloads-plugin is allowed to execute code. Answer y to this as it is responsible for downloading the appropriate binaries for your system.

Once installed, consult the Commands section below and start using Trunk!

Commands

fmt

The fmt command makes it easy to format PHP code in your project. It currently has support for the following formatters:

To format your entire project (or files configured for your editor), run the following command.

If you wish to format a specific file or directory, you can pass the path as an argument to the command and it will be passed through to the underlying formatter (where appropriate).

If you want to perform a dry-run, you can pass the --dry-run (-d) flag.

check

The check command is used to perform static analysis. It currently supports the following static analysers:

To run the static analyser on your entire project, use the following command:

If you wish to statically analyse a single file, use the following command:

Some projects might choose to use multiple static analysers for different reasons. If that is the case on your project, you can pass a comma-separated list of tools to run with the --using (-u) option. They will be executed in the order provided.

test

The test command is used to execute any form of test. It currently supports the following test runners:

To run your tests, use the following command:

If you wish to execute a particular test, or directory of tests, use the following command:

In certain scenarios, you might want to pass additional arguments to the underlying command. You can do this by placing additional arguments after a -- symbol. All additional arguments will be forwarded to the underlying test runner.


All versions of trunk with dependencies

PHP Build Version
Package Version
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 pxp/trunk contains the following files

Loading the files please wait ....