Introduction
Well, hello there, old sport! Today, let me introduce you to a project as original as it is elegant: the £-PHP Preprocessor. Why settle for the mundane $ in your PHP variables when you can show off your refinement with a splendid £? Tea time and code, hand in hand!
What is the £-PHP Preprocessor?
This preprocessor allows you to write your PHP variables with the £ symbol (pound sterling, of course), then automatically converts your code to classic PHP syntax. A little posh touch that is sure to impress your colleagues... or the Queen!
Features
- So British Variables: Write
£favourite_teainstead of$favourite_tea. Isn’t that smashing? - Easy Preprocessing: A simple script to translate your
.phpsfiles into ready-to-use.phpfiles. - No-nonsense Design: As simple and effective as a good scone.
Installation
- Clone the repository:
git clone https://github.com/Paul-FranckDencausse/British-PHP-preprocessor-project-cd lovely-php-preprocessor - Make sure you have PHP installed on your machine. (It’s terribly uncivilised not to.)
Usage
Write your code
£tea = "Earl Grey, hot";
echo £tea;
Preprocess your code
php preprocessor.php
Your my_code.phps file will be translated into my_code_translated.php:
$tea = "Earl Grey, hot";
echo $tea;
Run as usual
php my_code_translated.php
Tea-tastic! 🎉
Contributing (with elegance)
- Fork the project
- Create a branch with a jolly good name
- Code while sipping tea
- Send a pull request for a proper chinwag
Acknowledgements and Licence
A hearty cheers to:
- Tea, for fuelling all those late-night coding sessions
- The pound sterling, for the inspiration
- You, dear user, for keeping PHP so classy
Licence: Tea & Crumpets License.
By using this project, you agree to drink at least one cup of tea during development and to say “cheers” every time you deploy. God save the variables! 💂♀️