Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved phpunit from "require" to "require-dev" in composer.json #19

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="https://github.com/SerhiiCho/goodbye-html/blob/master/LICENSE.md"><img alt="GitHub" src="https://img.shields.io/github/license/SerhiiCho/goodbye-html"></a>
</p>

A very simple package for separating PHP logic from HTML or any other text. It allows you to insert **variables**, **if/else statements**, **loops** and **ternary operators** into any text file and dynamically get parsed content of this file.
A very simple package for separating PHP logic from HTML or any other text. It allows you to insert **variables**, **if/elseif/else statements**, **loops** and **ternary operators** into any text file and dynamically get parsed content of this file.

- [📝 Release notes](https://github.com/SerhiiCho/goodbye-html/blob/main/docs/changelog.md)
- [✏️ BNF grammar](https://github.com/SerhiiCho/goodbye-html/blob/main/docs/goodbye-html.bnf)
Expand All @@ -15,7 +15,7 @@ A very simple package for separating PHP logic from HTML or any other text. It a
- ✅ 8.3

## What is it for?
This package is useful when you need to separate PHP logic from HTML or any other text. For example if you need to send an email with some dynamic content, you can create a template file with HTML and insert variables, if/else statements, loops and ternary operators into it. Then you can pass this file to the parser and get parsed content of this file as a string. Then you can use this string as a content of your email.
This package is useful when you need to separate PHP logic from HTML or any other text. For example if you need to send an email with some dynamic content, you can create a template file with HTML and insert variables, if/elseif/else statements, loops and ternary operators into it. Then you can pass this file to the parser and get parsed content of this file as a string. Then you can use this string as a content of your email.

## What is it not for?
This package is not for creating a full-featured template engine. It's just a simple parser that allows you to insert some PHP logic into any text file. It's not for creating a full-featured template engine like [Twig](https://twig.symfony.com/), [Blade](https://laravel.com/docs/8.x/blade) or [Latte](https://latte.nette.org/en/). If you need a full-featured template engine, you should use one of the mentioned above.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
}
},
"require": {
"php": "^8.2",
"phpunit/phpunit": "^11.0@dev"
"php": "^8.2"
},
"require-dev": {
"symfony/var-dumper": "^5.0@dev",
"laravel/pint": "dev-main",
"phpstan/phpstan": "1.11.x-dev",
"squizlabs/php_codesniffer": "4.0.x-dev"
"squizlabs/php_codesniffer": "4.0.x-dev",
"phpunit/phpunit": "^11.0@dev"
},
"scripts": {
"test": "./vendor/bin/phpunit --order-by=random",
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## v2.9.3 (2024-01-12)

- Moved `phpunit` from "require" to "require-dev" in `composer.json` file

----

## v2.9.2 (2024-01-12)

- Added more tests to `EvaluatorTest.php` for checking if/elseif/else statements logic
Expand Down