aligner-php

PHP support for aligner

adrianlee44

55,953

57

1.3.0

MIT

GitHub

This package provides the following services:

aligner-php

Aligner add-on to support PHP.

Supported operators

=>:

array(
    key  => value,
    key2 => value2,
    key3 => value3,
)

=, +=, -=, etc:

$a    = 2;
$bcd  = 3;
$bcd += 4;

== and ===:

echo (
    $a    == 1 ? 'one' :
    $a    == 2 ? 'two' :
    $abc  == 3 ? 'three' :
    $a   === 3 ? 'three' :
    $a    == 4 ? 'four' : 'other');

,:

define( 'key',  'value' );
define( 'key2', 'value2' );
define( 'key3', 'value3' );

Installation

Aligner must be installed along with this package. For more information, please check out Aligner

Changelog