Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/b-viguier/PhpFk

Writing PHP with only 6 characters
https://github.com/b-viguier/PhpFk

php

Last synced: about 2 months ago
JSON representation

Writing PHP with only 6 characters

Awesome Lists containing this project

README

        

# PhpF**k

This repository contains some functions to rewrite any Php code with only 6 characters `(,.^')`.
Inspired from https://github.com/splitline/PHPFuck, but updated to work on PHP 8+.

[See corresponding article for more details](https://b-viguier.github.io/PhpFk/).

## Running the code

```
php ./bin/phpfk.php ""
```

To run tests, you have first to `composer install` dependencies (PhpUnit).
```
php ./vendor/bin/phpunit ./tests
```

## Running Jekyll
```
docker run --rm -it --volume="$PWD:/srv/jekyll" -p 4000:4000 -p 35729:35729 jekyll/jekyll jekyll serve --livereload
```