2017 © Pedro Peláez
 

library hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain a given convention.

image

hippophp/hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain a given convention.

  • Saturday, August 12, 2017
  • by jbrooksuk
  • Repository
  • 6 Watchers
  • 82 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Hippo

StyleCI Build Status Code Climate Test Coverage Dependencies, (*1)

Installation & Usage

Either PHP 5.5+ or HHVM 3.6+ are required., (*2)

To get the latest version of Hippo, simply require the project using Composer:, (*3)

$ composer require hippophp/hippo

If you want to develop Hippo, you'll need Git and >= PHP 5.5 installed on your system., (*4)

Clone the repo to your local environment:, (*5)

$ git clone git@github.com:hippophp/hippo.git

Then install the dependencies:, (*6)

$ cd hippo
$ composer install

Usage

Once Hippo is in a directory you can run it with:, (*7)

$ ./bin/hippo ./src

By default Hippo will output everything to STDOUT. You can get help information with:, (*8)

$ ./bin/hippo --help
Hippo 0.1.0 by James Brooks, Marcin Kurczewski

Usage: hippo [switches] <directory>
  -h, --help                Prints this usage information
  -v, --version             Print version information
  -l, --log LOGLEVELS       Sets which severity levels should be logged
                            (default: "info,warning,error")
  -s, --strict 1|0          Enables or disables strict mode (default: 0)
                            Strict mode will exit with code 1 on any violation.
  -q, --quiet 1|0           Same as --log ""
      --verbose 1|0         Same as --log "info,warning,error"
  -c, --config PATH         Use specific config (default: "base")
  --report-xml PATH         Output a Checkstyle-compatible XML to PATH

Available configs:
  - base
  - PEAR
  - PGS-2
  - PSR-1
  - PSR-2

Tests

We've built a test system against Hippo. Tests are ran on Travis CI for every pull request which is made., (*9)

About

Hippo originally started life as a fork of PHPCheckstyle, however after realising that a complete rewrite would be needed, the core ideas changed and as such, Hippo was born., (*10)

Hippo is an open-source tool that helps PHP programmers adhere to certain coding conventions. The tools checks the input PHP source code and reports any violations against the given standards., (*11)

Compatible with PHP 5.5 and up., (*12)

Goals

  • [x] Create a proper test suite.
  • [x] Checks should be able to implement different kind of check types, giving more freedom on a per-check basis.
  • [x] Integrate PHP-Parser for AST. Checks can extend some kind of AST Node Tree class.
  • [ ] Set default standards to PSR 2.
    • [ ] Standards and configurations should be able to be extended.
    • [ ] PSR-1
    • [ ] PSR-2
    • [ ] PGS-2
    • [ ] Zend
    • [ ] PEAR
  • [x] Configuration keys should allow flexibility in the naming pattern, it shouldn't matter so long as it is a valid name.
    • [x] camelCase
    • [x] snake_case
    • [x] PascalCase
  • [X] Run as a binary with console output and as a library.
  • [x] Switch to semver versioning.

License

Hippo is licensed under The MIT License (MIT)., (*13)

The Versions

12/08 2017

dev-master

9999999-dev https://github.com/HippoPHP/Hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain a given convention.

  Sources   Download

MIT

The Requires

 

The Development Requires

validator standard tokenizer coding standards checkstyle convention

24/01 2016

v0.1.0

0.1.0.0 https://github.com/HippoPHP/Hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain a given convention.

  Sources   Download

MIT

The Requires

 

The Development Requires

validator standard tokenizer coding standards checkstyle convention

11/11 2014

dev-ban-opening-tags

dev-ban-opening-tags https://github.com/hippophp/hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain coding conventions

  Sources   Download

MIT

The Requires

 

The Development Requires

validator standard coding standards checkstyle convention

10/11 2014

dev-refactor-indentationcheck

dev-refactor-indentationcheck https://github.com/hippophp/hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain coding conventions

  Sources   Download

MIT

The Requires

 

The Development Requires

validator standard coding standards checkstyle convention

10/11 2014

dev-small-cleanup

dev-small-cleanup https://github.com/hippophp/hippo

Hippo is an open-source tool that helps PHP programmers adhere to certain coding conventions

  Sources   Download

MIT

The Requires

 

The Development Requires

validator standard coding standards checkstyle convention