diff --git a/composer.json b/composer.json index 0946c38..345798d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "ramytalal/exporter", "description": "Export the Laravel environment file to a capable web server format.", - "keywords": ["env", "environment", "export", "laravel"], + "keywords": ["env", "environment", "export", "laravel", "env export", "environment export"], "license": "MIT", "homepage": "https://github.com/RamyTalal/Exporter", "authors": [ diff --git a/composer.lock b/composer.lock index c257e34..52a4702 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "3876e455b7197d8d6093af786932c920", + "hash": "b6bc1da9ad97854b69d2dfa4e8473511", "content-hash": "42f7ffc71a82a54a506e572d54cc58ad", "packages": [], "packages-dev": [ @@ -131,16 +131,16 @@ }, { "name": "illuminate/console", - "version": "v5.2.21", + "version": "v5.2.28", "source": { "type": "git", "url": "https://github.com/illuminate/console.git", - "reference": "a58e77d91c949eed906d3b8c67e0f0ad9246ee96" + "reference": "16debb84fd38c2556c281a1d98059c7662d0312f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/console/zipball/a58e77d91c949eed906d3b8c67e0f0ad9246ee96", - "reference": "a58e77d91c949eed906d3b8c67e0f0ad9246ee96", + "url": "https://api.github.com/repos/illuminate/console/zipball/16debb84fd38c2556c281a1d98059c7662d0312f", + "reference": "16debb84fd38c2556c281a1d98059c7662d0312f", "shasum": "" }, "require": { @@ -178,20 +178,20 @@ ], "description": "The Illuminate Console package.", "homepage": "http://laravel.com", - "time": "2016-02-22 14:14:58" + "time": "2016-03-30 18:13:51" }, { "name": "illuminate/contracts", - "version": "v5.2.21", + "version": "v5.2.28", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "eea3cf7ce90651e067a914d16383b019da45fcb5" + "reference": "411b851962c211078ade7664a6976e77a78cd2a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/eea3cf7ce90651e067a914d16383b019da45fcb5", - "reference": "eea3cf7ce90651e067a914d16383b019da45fcb5", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/411b851962c211078ade7664a6976e77a78cd2a5", + "reference": "411b851962c211078ade7664a6976e77a78cd2a5", "shasum": "" }, "require": { @@ -220,20 +220,20 @@ ], "description": "The Illuminate Contracts package.", "homepage": "http://laravel.com", - "time": "2016-02-22 09:18:57" + "time": "2016-03-07 20:37:17" }, { "name": "illuminate/filesystem", - "version": "v5.2.21", + "version": "v5.2.28", "source": { "type": "git", "url": "https://github.com/illuminate/filesystem.git", - "reference": "ec2df9bb97fbc08776ed1df399a323440e6db563" + "reference": "e197f38660beab95743d9d5565d0f11d956288ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/filesystem/zipball/ec2df9bb97fbc08776ed1df399a323440e6db563", - "reference": "ec2df9bb97fbc08776ed1df399a323440e6db563", + "url": "https://api.github.com/repos/illuminate/filesystem/zipball/e197f38660beab95743d9d5565d0f11d956288ea", + "reference": "e197f38660beab95743d9d5565d0f11d956288ea", "shasum": "" }, "require": { @@ -270,32 +270,32 @@ ], "description": "The Illuminate Filesystem package.", "homepage": "http://laravel.com", - "time": "2016-02-24 03:13:07" + "time": "2016-03-21 14:55:26" }, { "name": "illuminate/support", - "version": "v5.2.21", + "version": "v5.2.28", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "6749fab3f3d38d8b15427536a8e7bbdc57497c9e" + "reference": "e4aa03c5f26db752e838354a7d71b85e6138f4ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/6749fab3f3d38d8b15427536a8e7bbdc57497c9e", - "reference": "6749fab3f3d38d8b15427536a8e7bbdc57497c9e", + "url": "https://api.github.com/repos/illuminate/support/zipball/e4aa03c5f26db752e838354a7d71b85e6138f4ec", + "reference": "e4aa03c5f26db752e838354a7d71b85e6138f4ec", "shasum": "" }, "require": { "doctrine/inflector": "~1.0", "ext-mbstring": "*", "illuminate/contracts": "5.2.*", + "paragonie/random_compat": "~1.4", "php": ">=5.5.9" }, "suggest": { "illuminate/filesystem": "Required to use the composer class (5.2.*).", "jeremeamia/superclosure": "Required to be able to serialize closures (~2.2).", - "paragonie/random_compat": "Provides a compatible interface like PHP7's random_bytes() in PHP 5 projects (~1.1).", "symfony/polyfill-php56": "Required to use the hash_equals function on PHP 5.5 (~1.0).", "symfony/process": "Required to use the composer class (2.8.*|3.0.*).", "symfony/var-dumper": "Improves the dd function (2.8.*|3.0.*)." @@ -326,7 +326,7 @@ ], "description": "The Illuminate Support package.", "homepage": "http://laravel.com", - "time": "2016-02-22 20:29:02" + "time": "2016-03-30 18:18:45" }, { "name": "nesbot/carbon", @@ -375,6 +375,54 @@ ], "time": "2015-11-04 20:07:17" }, + { + "name": "paragonie/random_compat", + "version": "v1.4.1", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "c7e26a21ba357863de030f0b9e701c7d04593774" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/c7e26a21ba357863de030f0b9e701c7d04593774", + "reference": "c7e26a21ba357863de030f0b9e701c7d04593774", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "pseudorandom", + "random" + ], + "time": "2016-03-18 20:34:03" + }, { "name": "phpdocumentor/reflection-docblock", "version": "2.0.4", @@ -1227,19 +1275,20 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "2.5.1", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "6731851d6aaf1d0d6c58feff1065227b7fda3ba8" + "reference": "1bcdf03b068a530ac1962ce671dead356eeba43b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/6731851d6aaf1d0d6c58feff1065227b7fda3ba8", - "reference": "6731851d6aaf1d0d6c58feff1065227b7fda3ba8", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1bcdf03b068a530ac1962ce671dead356eeba43b", + "reference": "1bcdf03b068a530ac1962ce671dead356eeba43b", "shasum": "" }, "require": { + "ext-simplexml": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", "php": ">=5.1.2" @@ -1300,20 +1349,20 @@ "phpcs", "standards" ], - "time": "2016-01-19 23:39:10" + "time": "2016-04-03 22:58:34" }, { "name": "symfony/console", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "2ed5e2706ce92313d120b8fe50d1063bcfd12e04" + "reference": "6b1175135bc2a74c08a28d89761272de8beed8cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/2ed5e2706ce92313d120b8fe50d1063bcfd12e04", - "reference": "2ed5e2706ce92313d120b8fe50d1063bcfd12e04", + "url": "https://api.github.com/repos/symfony/console/zipball/6b1175135bc2a74c08a28d89761272de8beed8cd", + "reference": "6b1175135bc2a74c08a28d89761272de8beed8cd", "shasum": "" }, "require": { @@ -1360,20 +1409,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2016-02-28 16:24:34" + "time": "2016-03-16 17:00:50" }, { "name": "symfony/finder", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "623bda0abd9aa29e529c8e9c08b3b84171914723" + "reference": "c54e407b35bc098916704e9fd090da21da4c4f52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/623bda0abd9aa29e529c8e9c08b3b84171914723", - "reference": "623bda0abd9aa29e529c8e9c08b3b84171914723", + "url": "https://api.github.com/repos/symfony/finder/zipball/c54e407b35bc098916704e9fd090da21da4c4f52", + "reference": "c54e407b35bc098916704e9fd090da21da4c4f52", "shasum": "" }, "require": { @@ -1409,7 +1458,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2016-01-27 05:14:46" + "time": "2016-03-10 11:13:05" }, { "name": "symfony/polyfill-mbstring", @@ -1472,16 +1521,16 @@ }, { "name": "symfony/translation", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "2de0b6f7ebe43cffd8a06996ebec6aab79ea9e91" + "reference": "f7a07af51ea067745a521dab1e3152044a2fb1f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/2de0b6f7ebe43cffd8a06996ebec6aab79ea9e91", - "reference": "2de0b6f7ebe43cffd8a06996ebec6aab79ea9e91", + "url": "https://api.github.com/repos/symfony/translation/zipball/f7a07af51ea067745a521dab1e3152044a2fb1f2", + "reference": "f7a07af51ea067745a521dab1e3152044a2fb1f2", "shasum": "" }, "require": { @@ -1532,20 +1581,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2016-02-02 13:44:19" + "time": "2016-03-25 01:41:20" }, { "name": "symfony/yaml", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "b5ba64cd67ecd6887f63868fa781ca094bd1377c" + "reference": "0047c8366744a16de7516622c5b7355336afae96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/b5ba64cd67ecd6887f63868fa781ca094bd1377c", - "reference": "b5ba64cd67ecd6887f63868fa781ca094bd1377c", + "url": "https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96", + "reference": "0047c8366744a16de7516622c5b7355336afae96", "shasum": "" }, "require": { @@ -1581,7 +1630,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2016-02-23 15:16:06" + "time": "2016-03-04 07:55:57" } ], "aliases": [], diff --git a/src/Console/Command/Export.php b/src/Console/Command/Export.php index 48950d5..f101fef 100644 --- a/src/Console/Command/Export.php +++ b/src/Console/Command/Export.php @@ -69,7 +69,7 @@ protected function export($fileContents) return 0; } - preg_match_all('/([a-zA-z0-9]+)="(.+)"/', $fileContents, $matches); + preg_match_all('/(\w+)="?(.*)(?line($exporter->generate($matches[1], $matches[2]));