Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilessam/translationman
Easy Laravel Language Files Management Package
https://github.com/lilessam/translationman
Last synced: about 1 month ago
JSON representation
Easy Laravel Language Files Management Package
- Host: GitHub
- URL: https://github.com/lilessam/translationman
- Owner: lilessam
- Created: 2017-07-22T08:46:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T18:09:44.000Z (almost 7 years ago)
- Last Synced: 2024-04-17T12:00:08.896Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### TranslationMan Package For Laravel
This small package gives you all functionlaity you need to manage your laravel language files with simple forms you can integrate in your application layout.
#### Features
1. Lanaguages Creation/Deletion.
2. Language Files Creation/Deletion.
3. Files' array modification with a simple form (Allows multi dimensional arrays with dots in the index column).
#### Installation
Via Composer `composer require lilessam/translationman`Add `Lilessam\Translationman\TranslationmanServiceProvider::class` to your providers array in `config/app.php`.
You will also have to set `resources/lang` folder permissions to 777.
#### Publish Config and Views
`php artisan vendor:publish --provider="Lilessam\Translationman\TranslationmanServiceProvider"`
Now views files will be published in `resources/views/vendor/translationman`.You will realize that all files contains only basic bootstrap forms. You will have to integrate this forms as you like.
#### Routes
When you publish the service provider files you will see `translationman.php` file in `Config` folder. So there you can `url_prefix`. Default is `translations` so it can be viewed by `app.dev/translations`.You can also provide a middleware for the package routes by modifying `middleware` in the config file.
The `middleware` can be string or an array of middlewares (BUT CANNOT BE EMPTY STRING).
###### Notice: All package views are pure Bootstrap forms and tables without any CSS. You have to integrate views files into your application theme by extending your layouts.
#### Working with VueJS Components
If you would like to pass your language array to a VueJS component you need to use `json_lang` helper which will pass your lang array with no problems.
```PHP```