https://github.com/b-viguier/PhpFk
Writing PHP with only 6 characters
https://github.com/b-viguier/PhpFk
php
Last synced: about 1 year ago
JSON representation
Writing PHP with only 6 characters
- Host: GitHub
- URL: https://github.com/b-viguier/PhpFk
- Owner: b-viguier
- Created: 2022-12-09T12:32:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T20:07:22.000Z (almost 2 years ago)
- Last Synced: 2024-09-12T06:18:27.728Z (almost 2 years ago)
- Topics: php
- Language: PHP
- Homepage: https://b-viguier.github.io/PhpFk/
- Size: 35.2 KB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhpF**k
This repository contains some functions to rewrite any Php code with only 5 characters `(.^9)`.
Inspired from https://github.com/splitline/PHPFuck
(and [this comment](https://github.com/splitline/PHPFuck/issues/6#issuecomment-890615315))
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 locally
```bash
cd docs
docker build -t jekyll .
docker run --rm -it --volume="$PWD:/srv/jekyll" -p 4000:4000 -p 35729:35729 jekyll serve --host 0.0.0.0 --livereload
```