Download the PHP package wata727/pahout without Composer

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

Pahout

Build Status Latest Stable Version Docker Hub

A pair programming partner for writing better PHP. Pahout means PHP mahout :elephant:

Motivation

PHP has been added various features in the long history. However, due to the length of its history, many old syntax is scattered over the Internet. If a PHPer learned from them, the PHPer cannot know the excellent syntax and functions existing in the latest PHP version. This is a very sad thing.

So, I thought about making a linter like a pair programming partner who tells you a good way. It will help you write better PHP with you.

However, please do not try to fix all existing codes based on the hints of Pahout first. Pahout is a pair programming partner. When pairing programming, you don't check all existing codes, do you? My recommendation is to only check on newly created or modified files. For example, it is a good idea to set pre-commit hook as follows:

Installation

Pahout requires the following environment:

Using Composer

You can install with composer.

Using Docker

By using the Docker image, you can easily try Pahout without affecting the local environment.

Quick Start

You are using PHP 7.1.8 in your project. What do you think of the following code?

Perhaps it is a familiar code. However, if you know the null coalescing operator, you will write something like this:

Pahout will support such rewriting. Try to run on the above example.

Pahout tells you where the null coalescing operator can be used! For the list of hints provided by Pahout, please see this documentation.

If you want to analyze multiple files, you can specify more than one.

If you specify a directory name, all .php files under that directory will be covered.

Configuration

You can change the configuration from the command line.

You can also change the configuration by preparing a configuration file called .pahout.yaml.

PHP Version

Specify the PHP version of your project. The default is the runtime version. Pahout uses this version to select tools.

Ignore Tools

In Pahout, what generates hints is called "Tool". You can specify the tool name you want to ignore. Please look at the documentation for the list of tool names.

Only Tools

Contrary to ignore_tools, specify tools to check.

Ignore Paths

You can specify the file or directory you want to ignore. If a directory name is specified, all files under that directory are ignored.

Extensions

File extensions to be analyzed. Default is php only.

Vendor

You can set whether to ignore the vendor directory.

Note: The vendor directory is ignored by default. Generally, you don't need to check the vendor directory.

Format

Specify the output format. Currently only pretty and json are supported.

Config

Specify a configuration file name. This is useful when you want to use the file name other than .pahout.yaml in the configuration file.

Annotation

Using annotations, you can ignore hints for specific lines. Specify the tool name you want to ignore with @rebel.

The following comments will work in the same way.

Author

Kazuma Watanabe


All versions of pahout with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-ast Version ^0.1.7|^1.0.0
symfony/console Version >=3.3
symfony/yaml Version >=3.3
psr/log 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 wata727/pahout contains the following files

Loading the files please wait ....