rpungello / laravel-string-template
String template engine for Laravel applications
3.0.0
2024-03-21 20:01 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0|^10.0|^11.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nesbot/carbon: ^2.72.0|^3.0.0
- nunomaduro/collision: ^6.0|^8.1
- orchestra/testbench: ^7.0|^8.0|^9.0
- pestphp/pest: ^1.21|^2.0
- pestphp/pest-plugin-laravel: ^1.1|^2.3
- phpunit/phpunit: ^9.5|^10.0
- spatie/laravel-ray: ^1.26
README
Basic string templating engine for Laravel applications.
Installation
You can install the package via composer:
composer require rpungello/laravel-string-template
You can publish the config file with:
php artisan vendor:publish --tag="laravel-string-template-config"
This is the contents of the published config file:
return [ 'left' => '{', 'right' => '}', ];
Usage
\Rpungello\LaravelStringTemplate\Facades\LaravelStringTemplate::format('{value1} - {value2}', [ 'value1' => 1, 'value2' => 2, ]));
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.