# biaphp

Latest version **0.0.6** (published 2015-08-18) · 0 weekly downloads

## Install

```sh
npm install biaphp
pnpm add biaphp
yarn add biaphp
bun add biaphp
```

Provides the command `biaphp`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2015-08-18 |
| First published | 2015-02-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Renan Veroneze |
| Maintainers | renanveroneze |
| Keywords | bia, biaphp, php, preprocessor |

## Links

- npm: https://www.npmjs.com/package/biaphp
- Repository: https://github.com/renanveroneze/biaphp
- Issues: https://github.com/renanveroneze/biaphp/issues
- npm.io page: https://npm.io/package/biaphp

## Recent versions

- 0.0.6 (latest) — 2015-08-18
- 0.0.5 — 2015-03-09
- 0.0.4 — 2015-02-14
- 0.0.3 — 2015-02-13
- 0.0.2 — 2015-02-13
- 0.0.1 — 2015-02-13

## README

# BiaPHP


```php
/*
 *                                 ___           ___         ___           ___
 *      _____                     /\  \         /\  \       /\  \         /\  \
 *     /::\  \       ___         /::\  \       /::\  \      \:\  \       /::\  \
 *    /:/\:\  \     /\__\       /:/\:\  \     /:/\:\__\      \:\  \     /:/\:\__\
 *   /:/ /::\__\   /:/__/      /:/ /::\  \   /:/ /:/  /  ___ /::\  \   /:/ /:/  /
 *  /:/_/:/\:|__| /::\  \     /:/_/:/\:\__\ /:/_/:/  /  /\  /:/\:\__\ /:/_/:/  /
 *  \:\/:/ /:/  / \/\:\  \__  \:\/:/  \/__/ \:\/:/  /   \:\/:/  \/__/ \:\/:/  /
 *   \::/_/:/  /     \:\/\__\  \::/__/       \::/__/     \::/__/       \::/__/
 *    \:\/:/  /       \::/  /   \:\  \        \:\  \      \:\  \        \:\  \
 *     \::/  /        /:/  /     \:\__\        \:\__\      \:\__\        \:\__\
 *      \/__/         \/__/       \/__/         \/__/       \/__/         \/__/
 *
 *
 *  BiaPHP is created by Renan Veroneze and it's licensed under a Creative Commons BY-SA.
 *  © 2014~2015
 *  @0.0.1
 *
 */
```

Is a Pre-processor to Transcompile language  to PHP


## Examples

###### This is a BiaPHP syntax:

```python
<?
  class Test

    public __construct ->

      if $_SERVER['REMOTE_ADDR'] == '127.0.0.1'

        print 'Not allowed to localhost'

```


###### And compile this:

```php
<?php
  class Test {
    public function __construct() {
      if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
        print 'Not allowed to localhost';
      }
    }
  }
?>
```


## Syntax Reference

| BiaPHP | PHP |
|--------|-----|
| <? | <?php |
| public f -> | public function f() {} |
| public f ( x ) -> | public function f( x ) {}|
| if x | if(x) {} |
| End vars lines  | ; |
| @x | $this->x |
| @@x | self::x |
| ~x | parent::x |
| $_S | $_SESSION |
| $_P | $_POST |
| $_G | $_GET |
| $a ?: $b | $a ? $a : $b |
| self class class_name | class class_name{} new class_name |

---
_Source: https://npm.io/package/biaphp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
