Download the PHP package ibrostudio/laravel-file-data-manager without Composer
On this page you can find all versions of the php package ibrostudio/laravel-file-data-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrostudio/laravel-file-data-manager
More information about ibrostudio/laravel-file-data-manager
Files in ibrostudio/laravel-file-data-manager
Package laravel-file-data-manager
Short Description Laravel package to manage files data
License MIT
Homepage https://github.com/ibrostudio/laravel-file-data-manager
Informations about the package laravel-file-data-manager
Laravel package to manage files data
Little tool to read, change or add data in files.
Currently, it works with:
- .json files
- .php files
- .js files
Installation
You can install the package via composer:
Usage
There is 3 types of chainable methods, callable in this order: load > manipulation > result
- Load
- load(string $file)
- Manipulation
- findValue(string $key)
- findArray(string $key)
- findRegex(string $regex)
- replaceValue(string $key, mixed $value)
- addArrayValue(string $key, mixed $value)
- addRegexValue(string $regex, string $value)
- Result
- getContent()
- getValue()
- write()
Examples
-
Working with values
- Working with arrays
Test.php
- Working with regex
Test.php
It is possible to chain manipulations methods:
Testing
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.
All versions of laravel-file-data-manager with dependencies
illuminate/contracts Version ^9.0
spatie/laravel-package-tools Version ^1.9.2