2017 © Pedro Peláez
 

library canary

Canary is a cleaner version of the PHP language, like SASS for CSS, or TypeScript to Javascript, etc.

image

saguitech/canary

Canary is a cleaner version of the PHP language, like SASS for CSS, or TypeScript to Javascript, etc.

  • Saturday, August 23, 2014
  • by calebeoliveira
  • Repository
  • 4 Watchers
  • 4 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Canary

Canary is a cleaner version of the PHP language, for a faster development., (*1)

Warning: The current version is highly unstable, and is under development by SaguiTech's team. Don't use it for production., (*2)

Build Status, (*3)

Features

  • Code without annoying semicolons;
  • and the $ preceding variables.

Installation

You can be cloning this repository and build a PHP Archive (PHAR) using the box-project, (*4)

$ git clone https://github.com/SaguiTech/Canary.git
$ composer update
$ php vendor/bin/box build
$ chmod +x canary.phar
$ mv canary.phar /usr/local/bin/canary

Check the installation:, (*5)

$ canary --version

Example

file.cap, (*6)

echo "hello!\n"

variableWithNumbers10 = 10

VariableA = 'yes'
varB = 'no'

if (VariableA == varB)
    echo 'yes!'
else
    echo 'no!'

Then run:, (*7)

$ canary run file.cap, (*8)

The output is (file.php):, (*9)

<?php
echo "hello!\n";

$variableWithNumbers10 = 10;

$VariableA = 'yes';
$varB = 'no';

if ($VariableA == $varB)
    echo 'yes!';
else
    echo 'no!';

Other commands

$ canary run -h

Running the tests

$ php vendor/bin/phpunit --bootstrap vendor/autoload.php tests/

Warning

This code is not tested with many cases. It's under development., (*10)

Next steps

  • Implement unit tests;
  • Lexical analysis.

The Versions

23/08 2014

dev-master

9999999-dev https://github.com/SaguiTech/Canary

Canary is a cleaner version of the PHP language, like SASS for CSS, or TypeScript to Javascript, etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

11/08 2014

v0.1-alpha1

0.1.0.0-alpha1 https://github.com/SaguiTech/Canary

Canary is a cleaner version of the PHP language, like SASS for CSS, or TypeScript to Javascript, etc.

  Sources   Download

MIT

The Requires