ravloony/transduct

Transform a Laravel language directory into a single JSON array
63 2
Install
composer require ravloony/transduct
Latest Version:v5.2
PHP:>=5.3.0
Laravel:4 · 5
License:GPL-2.0+
Last Updated:Oct 3, 2019
Links: GitHub  ·  Packagist
Maintainer: ravloony

transduct

Simple package for laravel 4 to export lang folders to JSON.

##Setup & Usage

Installation

  • Add 'Ravloony\Transduct\TransductServiceProvider', to the end of the providers array in /app/config/app.php
  • Add 'Ravloony\Transduct\Facades\Transduct' to the end of the aliases array in /app/config.php

Usage

There is only one method:

Transduct::get('folder'), where folder is a fully qualified folder or subfolder in /app/lang/<locale>/

Transduct is locale aware and will output the current language.

Related Packages

jfadich/json-property

Transform an object property into an enhanced array

458 3
soloslee/json-response

JSON-API response for Laravel

92 8
wizclumsy/assets

Laravel asset loader

23 0
laracasts/utilities

Transform your PHP to JavaScript

11,035,004 2,199
yadakhov/json

A simple wrapper class to work with json in PHP.

8,393 16

Version History

Version Released PHP Laravel License
v5.2 >=5.3.0 ^4|^5 GPL-2.0+
v5.1 >=5.3.0 ^4|^5 GPL-2.0+
v5.0 >=5.3.0 ^4|^5 GPL-2.0+
v0.4.3 >=5.3.0 ^4|^5 GPL-2.0+
v0.4.2 >=5.3.0 4.* GPL-2.0+