Skip to content

Commit

Permalink
drop supports php 7.3, laravel 7.x, 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhquochan committed Feb 14, 2023
1 parent bd327a5 commit ca0d723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
26 changes: 3 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Allows you to use [Twig](https://twig.symfony.com/) in [Laravel](https://laravel

## Requirements

- PHP >= 7.3.0
- Laravel >= 6.x
- PHP >= 8.0
- Laravel >= 9.x

## Installation

Expand Down Expand Up @@ -57,30 +57,10 @@ Laravel Twig allows you to define your own custom filters, functions, globals, t
The following example creates a `{{ product.price|money_format }}` filter which formats a given `$product->price`:

```php
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use DinhQuocHan\Twig\Facades\Twig;

class AppServiceProvider extends ServiceProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function register()
{
//
}
//

/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Twig::addFilter(new TwigFilter('money_format', function ($price) {
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
}
],
"require": {
"php": "^7.3|^8.0",
"illuminate/console": "^8.28|^9.0|^10.0",
"illuminate/support": "^8.28|^9.0|^10.0",
"illuminate/view": "^8.28|^9.0|^10.0",
"twig/twig": "~3.0"
"php": "^8.0|^8.1|^8.2",
"illuminate/console": "^9|^10",
"illuminate/support": "^9|^10",
"illuminate/view": "^9|^10",
"twig/twig": "^3"
},
"require-dev": {
"laravel/framework": "^7.30|^8.28|^10.0",
"laravel/framework": "^9|^10",
"mockery/mockery": "^1.3.1",
"phpunit/phpunit": "^8.4|^9.0"
},
Expand Down

0 comments on commit ca0d723

Please sign in to comment.