Skip to content

Commit

Permalink
Remove PHP5 Support
Browse files Browse the repository at this point in the history
Update Package structure

- remove PHP5 support
- Improve Reader internal code
- createFromString now uses Stream instead of SplFileObject
- update package architecture to ease adding v9.0 public API
  • Loading branch information
nyamsprod committed Jan 26, 2017
1 parent ef7eef7 commit de2f2e4
Show file tree
Hide file tree
Showing 54 changed files with 1,349 additions and 12,441 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Expand Up @@ -12,5 +12,4 @@
/CHANGELOG.md export-ignore
/CONDUCT.md export-ignore
/phpunit.xml export-ignore
/examples export-ignore
/test export-ignore
/tests export-ignore
2 changes: 1 addition & 1 deletion .php_cs
Expand Up @@ -33,5 +33,5 @@ return Symfony\CS\Config\Config::create()
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/test')
->in(__DIR__.'/tests')
);
8 changes: 4 additions & 4 deletions .scrutinizer.yml
@@ -1,6 +1,6 @@
filter:
paths: [src/*]
excluded_paths: [examples/*, test/*]
excluded_paths: [tests/*]
checks:
php:
code_rating: true
Expand All @@ -20,7 +20,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 3
runs: 2
php_code_coverage: false
php_code_sniffer:
config:
Expand All @@ -29,7 +29,7 @@ tools:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [examples, test, vendor]
excluded_dirs: [tests, vendor]
php_cpd:
enabled: true
excluded_dirs: [examples, test, vendor]
excluded_dirs: [tests, vendor]
10 changes: 1 addition & 9 deletions .travis.yml
Expand Up @@ -4,18 +4,10 @@ sudo: false

matrix:
include:
- php: 5.5
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=false
- php: 5.6
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
- php: 7.0
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=false
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true
- php: 7.1
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=false
- php: hhvm
env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false
allow_failures:
- php: hhvm
fast_finish: true

cache:
Expand Down
17 changes: 16 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,22 @@
#Changelog
# Changelog

All Notable changes to `Csv` will be documented in this file

## Next

### Added

- None

### Fixed

- None

### Removed

- PHP5 support
- `examples` directory

## 8.2.0 - 2017-01-25

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -28,12 +28,12 @@ Highlights
Documentation
-------

Full documentation can be found at [csv.thephpleague.com](http://csv.thephpleague.com). Contribute to this documentation in the [gh-pages branch](https://github.com/thephpleague/csv/tree/gh-pages)
Full documentation can be found at [csv.thephpleague.com](http://csv.thephpleague.com).

System Requirements
-------

You need **PHP >= 5.5.0** and the `mbstring` extension to use `Csv` but the latest stable version of PHP is recommended.
You need **PHP >= 7.0** and the `mbstring` extension to use `Csv` but the latest stable version of PHP is recommended.

Install
-------
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Expand Up @@ -18,11 +18,11 @@
"issues": "https://github.com/thephpleague/csv/issues"
},
"require": {
"php" : ">=5.5.0",
"php" : ">=7.0",
"ext-mbstring" : "*"
},
"require-dev": {
"phpunit/phpunit" : "^4.0",
"phpunit/phpunit" : "^5.2",
"friendsofphp/php-cs-fixer": "^1.9"
},
"autoload": {
Expand All @@ -32,8 +32,7 @@
},
"autoload-dev": {
"psr-4": {
"League\\Csv\\Test\\": "test",
"lib\\": "examples\\lib"
"LeagueTest\\Csv\\": "tests"
}
},
"scripts": {
Expand All @@ -43,7 +42,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "8.2-dev"
"dev-master": "9.x-dev"
}
}
}
39 changes: 0 additions & 39 deletions examples/bom_excel_macos.php

This file was deleted.

11 changes: 0 additions & 11 deletions examples/bom_excel_win.php

This file was deleted.

9 changes: 0 additions & 9 deletions examples/download.php

This file was deleted.

53 changes: 0 additions & 53 deletions examples/example.css

This file was deleted.

43 changes: 0 additions & 43 deletions examples/extract.php

This file was deleted.

63 changes: 0 additions & 63 deletions examples/filtering.php

This file was deleted.

17 changes: 0 additions & 17 deletions examples/json.php

This file was deleted.

0 comments on commit de2f2e4

Please sign in to comment.