forked from studiofrenetic/laravel-formatter
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from SoapBox/2.0
Laravel Formatter 2.0
- Loading branch information
Showing
45 changed files
with
853 additions
and
3,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
composer.phar | ||
composer.lock | ||
.DS_Store | ||
notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
|
||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
{ | ||
"name": "soapbox/laravel-formatter", | ||
"type": "library", | ||
"description": "A Laravel 4 formatting library that converts data output between XML, CSV, JSON, TXT, YAML and a few others. ", | ||
"keywords": ["laravel", "formatter", "data","convert","csv", "xml", "yaml"], | ||
"description": "A formatting library that converts data output between XML, CSV, JSON, TXT, YAML and a few others.", | ||
"keywords": ["laravel", "formatter", "data", "convert", "csv", "xml", "yaml"], | ||
"homepage": "http://github.com/SoapBox/laravel-formatter", | ||
"license": "MIT", | ||
"version": "1.4", | ||
"version": "2.0", | ||
"authors": [ | ||
{ | ||
"name": "Graham McCarthy", | ||
"email": "[email protected]", | ||
"homepage": "http://grahammccarthy.com" | ||
}, | ||
{ | ||
"name": "Jaspaul Bola", | ||
"email": "[email protected]", | ||
"homepage": "http://jaspaulbola.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.0", | ||
"illuminate/support": ">=4.0", | ||
"illuminate/foundation": ">=4.0", | ||
"illuminate/config": ">=4.0", | ||
"illuminate/session": ">=4.0", | ||
"illuminate/filesystem": ">=4.0", | ||
"illuminate/view": ">=4.0" | ||
}, | ||
"require-dev": { | ||
"orchestra/testbench": "2.1.*", | ||
"mockery/mockery": "dev-master" | ||
"php": ">=5.4.0", | ||
"league/csv": "~6.0", | ||
"mustangostang/spyc": "0.5.*@dev", | ||
"illuminate/support": ">=4.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Spyc": "src/spyc/", | ||
"SoapBox\\Formatter": "src/" | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php namespace SoapBox\Formatter; | ||
|
||
use Illuminate\Support\Arr; | ||
|
||
class ArrayHelpers { | ||
|
||
public static function isAssociative($array) { | ||
return array_keys($array) !== range(0, count($array) - 1); | ||
} | ||
|
||
public static function dotKeys(array $data) { | ||
return array_keys(Arr::dot($data)); | ||
} | ||
|
||
public static function dot(array $data) { | ||
return Arr::dot($data); | ||
} | ||
|
||
public static function set(array &$data, $key, $value) { | ||
Arr::set($data, $key, $value); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.