Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Laravel 5.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramy Talal committed Mar 7, 2018
1 parent 0a64280 commit 0d9b3a9
Show file tree
Hide file tree
Showing 14 changed files with 1,023 additions and 1,004 deletions.
5 changes: 0 additions & 5 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ checks:
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

tools:
external_code_coverage:
timeout: 600
runs: 3
7 changes: 6 additions & 1 deletion .styleci.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
preset: psr2
preset: laravel

linting: true

disabled:
- single_class_element_per_statement
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ language: php
php:
- 7.0
- 7.1
- 7.2

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

matrix:
include:
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- printf "\n" | pecl install imagick

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
46 changes: 10 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
# Exporter

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]
[![Latest Version on Packagist](https://img.shields.io/packagist/v/RamyTalal/Exporter.svg?style=flat-square)](https://packagist.org/packages/RamyTalal/Exporter)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/RamyTalal/Exporter/master.svg?style=flat-square)](https://travis-ci.org/RamyTalal/Exporter)
[![Quality Score](https://img.shields.io/scrutinizer/g/RamyTalal/Exporter.svg?style=flat-square)](https://scrutinizer-ci.com/g/RamyTalal/Exporter)
[![StyleCI](https://styleci.io/repos/54327422/shield?branch=master)](https://styleci.io/repos/80513668)
[![Total Downloads](https://img.shields.io/packagist/dt/RamyTalal/Exporter.svg?style=flat-square)](https://packagist.org/packages/RamyTalal/Exporter)

Export the Laravel environment file to a capable web server format.

## Install

### Composer

``` bash
$ composer require RamyTalal/Exporter
```

### Laravel

#### Service Provider

Open `config/app.php` and register the required service provider.

``` php
'providers' => [
Talal\Exporter\Provider\ExporterServiceProvider::class
]
composer require RamyTalal/Exporter
```

## Usage

### Laravel

``` bash
$ php artisan env:export nginx --file=.env
php artisan env:export nginx --file=.env
```

### Standalone
Expand Down Expand Up @@ -61,22 +48,9 @@ If you discover any security related issues, please email ramy@thinkquality.nl i

## Credits

- [Ramy Talal][link-author]
- [All Contributors][link-contributors]
- [Ramy Talal][https://ramy.nl]
- [All Contributors][../../contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/RamyTalal/Exporter.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/RamyTalal/Exporter/master.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/RamyTalal/Exporter.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/RamyTalal/Exporter.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/RamyTalal/Exporter
[link-travis]: https://travis-ci.org/RamyTalal/Exporter
[link-code-quality]: https://scrutinizer-ci.com/g/RamyTalal/Exporter
[link-downloads]: https://packagist.org/packages/RamyTalal/Exporter
[link-author]: https://github.com/RamyTalal
[link-contributors]: ../../contributors
73 changes: 46 additions & 27 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,52 @@
{
"name": "ramytalal/exporter",
"description": "Export the Laravel environment file to a capable web server format.",
"keywords": ["env", "environment", "export", "laravel", "env export", "environment export"],
"license": "MIT",
"homepage": "https://github.com/RamyTalal/Exporter",
"authors": [
{
"name": "Ramy Talal",
"email": "ramy@thinkquality.nl",
"homepage": "https://thinkquality.nl"
}
],
"require": {
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "5.*",
"illuminate/console": "~5.4",
"illuminate/filesystem": "~5.4",
"squizlabs/php_codesniffer": "2.*"
},
"autoload": {
"psr-4": {
"Talal\\Exporter\\": "src/"
}
},
"name": "ramytalal/exporter",
"description": "Export the Laravel environment file to a capable web server format.",
"keywords": [
"env",
"environment",
"export",
"laravel",
"env export",
"environment export"
],
"license": "MIT",
"homepage": "https://github.com/RamyTalal/Exporter",
"authors": [
{
"name": "Ramy Talal",
"email": "ramy@thinkquality.nl",
"homepage": "https://thinkquality.nl"
}
],
"require": {
"php": "^7.0",
"illuminate/console": "~5.5.0|~5.6.0",
"illuminate/filesystem": "~5.5.0|~5.6.0"
},
"require-dev": {
"phpunit/phpunit": "6.*"
},
"autoload": {
"psr-4": {
"Talal\\Exporter\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Talal\\Exporter\\": "src/tests/"
"Talal\\Exporter\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"config": {
"sort-packages": true
},
"extra": {
"laravel": {
"providers": [
"Talal\\Exporter\\ExporterServiceProvider"
]
}
}
}
Loading

0 comments on commit 0d9b3a9

Please sign in to comment.