diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index b42f34f7..591014be 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -19,6 +19,10 @@ if [ "$TRAVIS" = "true" ]; then rm -rf .idea phpvms.iml .travis .dpl rm -rf .phpstorm.meta.php _ide_helper.php rm -rf node_modules + + # delete files in vendor that are rather large + rm -rf vendor/willdurand/geocoder/tests + php artisan version:show --format compact --suppress-app-name > VERSION echo "creating tarball" diff --git a/composer.json b/composer.json index 6253e8a3..ef15f247 100755 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "license": "MIT", "type": "project", "minimum-stability": "stable", - "url": "https://github.com/nabeelio/phpvms.git", + "homepage": "http://www.phpvms.net", "require": { "php": ">=7.0", "laravel/framework": "v5.5.25", @@ -38,7 +38,6 @@ "dg/rss-php": "1.2", "makinacorpus/php-bloom": "dev-master", "hashids/hashids": "2.0.4", - "maatwebsite/excel": "2.1.23", "scriptfusion/phpunit-immediate-exception-printer": "1.3.0", "nwidart/laravel-modules": "2.6.0", "sebastiaanluca/laravel-helpers": "1.0.2", @@ -57,8 +56,7 @@ "mockery/mockery": "0.9.*", "filp/whoops": "~2.0", "orchestra/testbench": "v3.5.2", - "bpocallaghan/generators": "5.0.1", - "laravel/dusk": "^2.0" + "bpocallaghan/generators": "5.0.1" }, "autoload": { "classmap": [ diff --git a/composer.lock b/composer.lock index cf6bf218..a7f4f66b 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" ], - "content-hash": "df612ce1827421974b40979645d5debe", + "content-hash": "1903b8908110b3294d19a8ef82d1cbd5", "packages": [ { "name": "composer/semver", @@ -1268,64 +1268,6 @@ ], "time": "2017-05-16T04:31:37+00:00" }, - { - "name": "jeremeamia/SuperClosure", - "version": "2.3.0", - "source": { - "type": "git", - "url": "https://github.com/jeremeamia/super_closure.git", - "reference": "443c3df3207f176a1b41576ee2a66968a507b3db" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/jeremeamia/super_closure/zipball/443c3df3207f176a1b41576ee2a66968a507b3db", - "reference": "443c3df3207f176a1b41576ee2a66968a507b3db", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^1.2|^2.0|^3.0", - "php": ">=5.4", - "symfony/polyfill-php56": "^1.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.0|^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-4": { - "SuperClosure\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia", - "role": "Developer" - } - ], - "description": "Serialize Closure objects, including their context and binding", - "homepage": "https://github.com/jeremeamia/super_closure", - "keywords": [ - "closure", - "function", - "lambda", - "parser", - "serializable", - "serialize", - "tokenizer" - ], - "time": "2016-12-07T09:37:55+00:00" - }, { "name": "jmikola/geojson", "version": "1.0.2", @@ -1898,84 +1840,6 @@ ], "time": "2016-02-03T16:31:33+00:00" }, - { - "name": "maatwebsite/excel", - "version": "2.1.23", - "source": { - "type": "git", - "url": "https://github.com/Maatwebsite/Laravel-Excel.git", - "reference": "8682c955601b6de15a8c7d6e373b927cc8380627" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/8682c955601b6de15a8c7d6e373b927cc8380627", - "reference": "8682c955601b6de15a8c7d6e373b927cc8380627", - "shasum": "" - }, - "require": { - "illuminate/cache": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "illuminate/config": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "illuminate/filesystem": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "jeremeamia/superclosure": "^2.3", - "nesbot/carbon": "~1.0", - "php": ">=5.5", - "phpoffice/phpexcel": "1.8.*", - "tijsverkoyen/css-to-inline-styles": "~2.0" - }, - "require-dev": { - "mockery/mockery": "~0.9", - "orchestra/testbench": "3.1.*|3.2.*|3.3.*|3.4.*|3.5.*", - "phpseclib/phpseclib": "~1.0", - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "illuminate/http": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "illuminate/queue": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "illuminate/routing": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*", - "illuminate/view": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Maatwebsite\\Excel\\ExcelServiceProvider" - ], - "aliases": { - "Excel": "Maatwebsite\\Excel\\Facades\\Excel" - } - } - }, - "autoload": { - "classmap": [ - "src/Maatwebsite/Excel" - ], - "psr-0": { - "Maatwebsite\\Excel\\": "src/" - } - }, - "notification-url": "http://packagist.org/downloads/", - "license": [ - "LGPL" - ], - "authors": [ - { - "name": "Maatwebsite.nl", - "email": "patrick@maatwebsite.nl" - } - ], - "description": "An eloquent way of importing and exporting Excel and CSV in Laravel 4 with the power of PHPExcel", - "keywords": [ - "PHPExcel", - "batch", - "csv", - "excel", - "export", - "import", - "laravel" - ], - "time": "2017-09-19T19:36:48+00:00" - }, { "name": "makinacorpus/php-bloom", "version": "dev-master", @@ -2278,16 +2142,16 @@ }, { "name": "nikic/php-parser", - "version": "v3.1.2", + "version": "v3.1.3", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "08131e7ff29de6bb9f12275c7d35df71f25f4d89" + "reference": "579f4ce846734a1cf55d6a531d00ca07a43e3cda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/08131e7ff29de6bb9f12275c7d35df71f25f4d89", - "reference": "08131e7ff29de6bb9f12275c7d35df71f25f4d89", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/579f4ce846734a1cf55d6a531d00ca07a43e3cda", + "reference": "579f4ce846734a1cf55d6a531d00ca07a43e3cda", "shasum": "" }, "require": { @@ -2325,7 +2189,7 @@ "parser", "php" ], - "time": "2017-11-04T11:48:34+00:00" + "time": "2017-12-26T14:43:21+00:00" }, { "name": "nwidart/laravel-modules", @@ -2804,63 +2668,6 @@ ], "time": "2017-07-14T14:27:02+00:00" }, - { - "name": "phpoffice/phpexcel", - "version": "1.8.1", - "source": { - "type": "git", - "url": "https://github.com/PHPOffice/PHPExcel.git", - "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHPOffice/PHPExcel/zipball/372c7cbb695a6f6f1e62649381aeaa37e7e70b32", - "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32", - "shasum": "" - }, - "require": { - "ext-xml": "*", - "ext-xmlwriter": "*", - "php": ">=5.2.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "PHPExcel": "Classes/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL" - ], - "authors": [ - { - "name": "Maarten Balliauw", - "homepage": "http://blog.maartenballiauw.be" - }, - { - "name": "Mark Baker" - }, - { - "name": "Franck Lefevre", - "homepage": "http://blog.rootslabs.net" - }, - { - "name": "Erik Tilt" - } - ], - "description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", - "homepage": "http://phpexcel.codeplex.com", - "keywords": [ - "OpenXML", - "excel", - "php", - "spreadsheet", - "xls", - "xlsx" - ], - "time": "2015-05-01T07:00:55+00:00" - }, { "name": "phpspec/prophecy", "version": "1.7.3", @@ -5556,62 +5363,6 @@ ], "time": "2017-10-11T12:05:26+00:00" }, - { - "name": "symfony/polyfill-php56", - "version": "v1.6.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "265fc96795492430762c29be291a371494ba3a5b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/265fc96795492430762c29be291a371494ba3a5b", - "reference": "265fc96795492430762c29be291a371494ba3a5b", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "symfony/polyfill-util": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.6-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php56\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2017-10-11T12:05:26+00:00" - }, { "name": "symfony/polyfill-php70", "version": "v1.6.0", @@ -5671,58 +5422,6 @@ ], "time": "2017-10-11T12:05:26+00:00" }, - { - "name": "symfony/polyfill-util", - "version": "v1.6.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-util.git", - "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/6e719200c8e540e0c0effeb31f96bdb344b94176", - "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.6-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Util\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony utilities for portability of PHP codes", - "homepage": "https://symfony.com", - "keywords": [ - "compat", - "compatibility", - "polyfill", - "shim" - ], - "time": "2017-10-11T12:05:26+00:00" - }, { "name": "symfony/process", "version": "v3.4.2", @@ -6899,61 +6598,6 @@ ], "time": "2017-11-16T12:28:04+00:00" }, - { - "name": "facebook/webdriver", - "version": "1.5.0", - "source": { - "type": "git", - "url": "https://github.com/facebook/php-webdriver.git", - "reference": "86b5ca2f67173c9d34340845dd690149c886a605" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/facebook/php-webdriver/zipball/86b5ca2f67173c9d34340845dd690149c886a605", - "reference": "86b5ca2f67173c9d34340845dd690149c886a605", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "ext-zip": "*", - "php": "^5.6 || ~7.0", - "symfony/process": "^2.8 || ^3.1 || ^4.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.0", - "guzzle/guzzle": "^3.4.1", - "php-coveralls/php-coveralls": "^1.0.2", - "php-mock/php-mock-phpunit": "^1.1", - "phpunit/phpunit": "^5.7", - "sebastian/environment": "^1.3.4 || ^2.0 || ^3.0", - "squizlabs/php_codesniffer": "^2.6", - "symfony/var-dumper": "^3.3 || ^4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-community": "1.5-dev" - } - }, - "autoload": { - "psr-4": { - "Facebook\\WebDriver\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "description": "A PHP client for Selenium WebDriver", - "homepage": "https://github.com/facebook/php-webdriver", - "keywords": [ - "facebook", - "php", - "selenium", - "webdriver" - ], - "time": "2017-11-15T11:08:09+00:00" - }, { "name": "filp/whoops", "version": "2.1.14", @@ -7110,67 +6754,6 @@ ], "time": "2015-05-11T14:41:42+00:00" }, - { - "name": "laravel/dusk", - "version": "v2.0.8", - "source": { - "type": "git", - "url": "https://github.com/laravel/dusk.git", - "reference": "a7529e19592879d3a6408728080ba657499890bc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/dusk/zipball/a7529e19592879d3a6408728080ba657499890bc", - "reference": "a7529e19592879d3a6408728080ba657499890bc", - "shasum": "" - }, - "require": { - "facebook/webdriver": "~1.0", - "illuminate/console": "~5.5", - "illuminate/support": "~5.5", - "nesbot/carbon": "~1.20", - "php": ">=5.6.4", - "symfony/console": "~3.2", - "symfony/process": "~3.2" - }, - "require-dev": { - "mockery/mockery": "~1.0", - "phpunit/phpunit": "~6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - }, - "laravel": { - "providers": [ - "Laravel\\Dusk\\DuskServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Laravel\\Dusk\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "Laravel Dusk provides simple end-to-end testing and browser automation.", - "keywords": [ - "laravel", - "testing", - "webdriver" - ], - "time": "2017-12-08T14:18:11+00:00" - }, { "name": "mockery/mockery", "version": "0.9.9", diff --git a/config/excel.php b/config/excel.php deleted file mode 100644 index 7acea7bc..00000000 --- a/config/excel.php +++ /dev/null @@ -1,683 +0,0 @@ - array( - - /* - |-------------------------------------------------------------------------- - | Enable/Disable cell caching - |-------------------------------------------------------------------------- - */ - 'enable' => true, - - /* - |-------------------------------------------------------------------------- - | Caching driver - |-------------------------------------------------------------------------- - | - | Set the caching driver - | - | Available methods: - | memory|gzip|serialized|igbinary|discISAM|apc|memcache|temp|wincache|sqlite|sqlite3 - | - */ - 'driver' => 'memory', - - /* - |-------------------------------------------------------------------------- - | Cache settings - |-------------------------------------------------------------------------- - */ - 'settings' => array( - - 'memoryCacheSize' => '32MB', - 'cacheTime' => 600 - - ), - - /* - |-------------------------------------------------------------------------- - | Memcache settings - |-------------------------------------------------------------------------- - */ - 'memcache' => array( - - 'host' => 'localhost', - 'port' => 11211, - - ), - - /* - |-------------------------------------------------------------------------- - | Cache dir (for discISAM) - |-------------------------------------------------------------------------- - */ - - 'dir' => storage_path('cache') - ), - - 'properties' => array( - 'creator' => 'Maatwebsite', - 'lastModifiedBy' => 'Maatwebsite', - 'title' => 'Spreadsheet', - 'description' => 'Default spreadsheet export', - 'subject' => 'Spreadsheet export', - 'keywords' => 'maatwebsite, excel, export', - 'category' => 'Excel', - 'manager' => 'Maatwebsite', - 'company' => 'Maatwebsite', - ), - - /* - |-------------------------------------------------------------------------- - | Sheets settings - |-------------------------------------------------------------------------- - */ - 'sheets' => array( - - /* - |-------------------------------------------------------------------------- - | Default page setup - |-------------------------------------------------------------------------- - */ - 'pageSetup' => array( - 'orientation' => 'portrait', - 'paperSize' => '9', - 'scale' => '100', - 'fitToPage' => false, - 'fitToHeight' => true, - 'fitToWidth' => true, - 'columnsToRepeatAtLeft' => array('', ''), - 'rowsToRepeatAtTop' => array(0, 0), - 'horizontalCentered' => false, - 'verticalCentered' => false, - 'printArea' => null, - 'firstPageNumber' => null, - ), - ), - - /* - |-------------------------------------------------------------------------- - | Creator - |-------------------------------------------------------------------------- - | - | The default creator of a new Excel file - | - */ - - 'creator' => 'Maatwebsite', - - 'csv' => array( - /* - |-------------------------------------------------------------------------- - | Delimiter - |-------------------------------------------------------------------------- - | - | The default delimiter which will be used to read out a CSV file - | - */ - - 'delimiter' => ',', - - /* - |-------------------------------------------------------------------------- - | Enclosure - |-------------------------------------------------------------------------- - */ - - 'enclosure' => '"', - - /* - |-------------------------------------------------------------------------- - | Line endings - |-------------------------------------------------------------------------- - */ - - 'line_ending' => "\r\n" - ), - - 'export' => array( - - /* - |-------------------------------------------------------------------------- - | Autosize columns - |-------------------------------------------------------------------------- - | - | Disable/enable column autosize or set the autosizing for - | an array of columns ( array('A', 'B') ) - | - */ - 'autosize' => true, - - /* - |-------------------------------------------------------------------------- - | Autosize method - |-------------------------------------------------------------------------- - | - | --> PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX - | The default is based on an estimate, which does its calculation based - | on the number of characters in the cell value (applying any calculation - | and format mask, and allowing for wordwrap and rotation) and with an - | "arbitrary" adjustment based on the font (Arial, Calibri or Verdana, - | defaulting to Calibri if any other font is used) and a proportional - | adjustment for the font size. - | - | --> PHPExcel_Shared_Font::AUTOSIZE_METHOD_EXACT - | The second method is more accurate, based on actual style formatting as - | well (bold, italic, etc), and is calculated by generating a gd2 imagettf - | bounding box and using its dimensions to determine the size; but this - | method is significantly slower, and its accuracy is still dependent on - | having the appropriate fonts installed. - | - */ - 'autosize-method' => PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX, - - /* - |-------------------------------------------------------------------------- - | Auto generate table heading - |-------------------------------------------------------------------------- - | - | If set to true, the array indices (or model attribute names) - | will automatically be used as first row (table heading) - | - */ - 'generate_heading_by_indices' => true, - - /* - |-------------------------------------------------------------------------- - | Auto set alignment on merged cells - |-------------------------------------------------------------------------- - */ - 'merged_cell_alignment' => 'left', - - /* - |-------------------------------------------------------------------------- - | Pre-calculate formulas during export - |-------------------------------------------------------------------------- - */ - 'calculate' => false, - - /* - |-------------------------------------------------------------------------- - | Include Charts during export - |-------------------------------------------------------------------------- - */ - 'includeCharts' => false, - - /* - |-------------------------------------------------------------------------- - | Default sheet settings - |-------------------------------------------------------------------------- - */ - 'sheets' => array( - - /* - |-------------------------------------------------------------------------- - | Default page margin - |-------------------------------------------------------------------------- - | - | 1) When set to false, default margins will be used - | 2) It's possible to enter a single margin which will - | be used for all margins. - | 3) Alternatively you can pass an array with 4 margins - | Default order: array(top, right, bottom, left) - | - */ - 'page_margin' => false, - - /* - |-------------------------------------------------------------------------- - | Value in source array that stands for blank cell - |-------------------------------------------------------------------------- - */ - 'nullValue' => null, - - /* - |-------------------------------------------------------------------------- - | Insert array starting from this cell address as the top left coordinate - |-------------------------------------------------------------------------- - */ - 'startCell' => 'A1', - - /* - |-------------------------------------------------------------------------- - | Apply strict comparison when testing for null values in the array - |-------------------------------------------------------------------------- - */ - 'strictNullComparison' => false - ), - - /* - |-------------------------------------------------------------------------- - | Store settings - |-------------------------------------------------------------------------- - */ - - 'store' => array( - - /* - |-------------------------------------------------------------------------- - | Path - |-------------------------------------------------------------------------- - | - | The path we want to save excel file to - | - */ - 'path' => storage_path('exports'), - - /* - |-------------------------------------------------------------------------- - | Return info - |-------------------------------------------------------------------------- - | - | Whether we want to return information about the stored file or not - | - */ - 'returnInfo' => false - - ), - - /* - |-------------------------------------------------------------------------- - | PDF Settings - |-------------------------------------------------------------------------- - */ - 'pdf' => array( - - /* - |-------------------------------------------------------------------------- - | PDF Drivers - |-------------------------------------------------------------------------- - | Supported: DomPDF, tcPDF, mPDF - */ - 'driver' => 'DomPDF', - - /* - |-------------------------------------------------------------------------- - | PDF Driver settings - |-------------------------------------------------------------------------- - */ - 'drivers' => array( - - /* - |-------------------------------------------------------------------------- - | DomPDF settings - |-------------------------------------------------------------------------- - */ - 'DomPDF' => array( - 'path' => base_path('vendor/dompdf/dompdf/') - ), - - /* - |-------------------------------------------------------------------------- - | tcPDF settings - |-------------------------------------------------------------------------- - */ - 'tcPDF' => array( - 'path' => base_path('vendor/tecnick.com/tcpdf/') - ), - - /* - |-------------------------------------------------------------------------- - | mPDF settings - |-------------------------------------------------------------------------- - */ - 'mPDF' => array( - 'path' => base_path('vendor/mpdf/mpdf/') - ), - ) - ) - ), - - 'filters' => array( - /* - |-------------------------------------------------------------------------- - | Register read filters - |-------------------------------------------------------------------------- - */ - - 'registered' => array( - 'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter' - ), - - /* - |-------------------------------------------------------------------------- - | Enable certain filters for every file read - |-------------------------------------------------------------------------- - */ - - 'enabled' => array() - ), - - 'import' => array( - - /* - |-------------------------------------------------------------------------- - | Has heading - |-------------------------------------------------------------------------- - | - | The sheet has a heading (first) row which we can use as attribute names - | - | Options: true|false|slugged|slugged_with_count|ascii|numeric|hashed|trans|original - | - */ - - 'heading' => 'slugged', - - /* - |-------------------------------------------------------------------------- - | First Row with data or heading of data - |-------------------------------------------------------------------------- - | - | If the heading row is not the first row, or the data doesn't start - | on the first row, here you can change the start row. - | - */ - - 'startRow' => 1, - - /* - |-------------------------------------------------------------------------- - | Cell name word separator - |-------------------------------------------------------------------------- - | - | The default separator which is used for the cell names - | Note: only applies to 'heading' settings 'true' && 'slugged' - | - */ - - 'separator' => '_', - - /* - |-------------------------------------------------------------------------- - | Include Charts during import - |-------------------------------------------------------------------------- - */ - - 'includeCharts' => false, - - /* - |-------------------------------------------------------------------------- - | Sheet heading conversion - |-------------------------------------------------------------------------- - | - | Convert headings to ASCII - | Note: only applies to 'heading' settings 'true' && 'slugged' - | - */ - - 'to_ascii' => true, - - /* - |-------------------------------------------------------------------------- - | Import encoding - |-------------------------------------------------------------------------- - */ - - 'encoding' => array( - - 'input' => 'UTF-8', - 'output' => 'UTF-8' - - ), - - /* - |-------------------------------------------------------------------------- - | Calculate - |-------------------------------------------------------------------------- - | - | By default cells with formulas will be calculated. - | - */ - - 'calculate' => true, - - /* - |-------------------------------------------------------------------------- - | Ignore empty cells - |-------------------------------------------------------------------------- - | - | By default empty cells are not ignored - | - */ - - 'ignoreEmpty' => false, - - /* - |-------------------------------------------------------------------------- - | Force sheet collection - |-------------------------------------------------------------------------- - | - | For a sheet collection even when there is only 1 sheets. - | When set to false and only 1 sheet found, the parsed file will return - | a row collection instead of a sheet collection. - | When set to true, it will return a sheet collection instead. - | - */ - 'force_sheets_collection' => false, - - /* - |-------------------------------------------------------------------------- - | Date format - |-------------------------------------------------------------------------- - | - | The format dates will be parsed to - | - */ - - 'dates' => array( - - /* - |-------------------------------------------------------------------------- - | Enable/disable date formatting - |-------------------------------------------------------------------------- - */ - 'enabled' => true, - - /* - |-------------------------------------------------------------------------- - | Default date format - |-------------------------------------------------------------------------- - | - | If set to false, a carbon object will return - | - */ - 'format' => false, - - /* - |-------------------------------------------------------------------------- - | Date columns - |-------------------------------------------------------------------------- - */ - 'columns' => array() - ), - - /* - |-------------------------------------------------------------------------- - | Import sheets by config - |-------------------------------------------------------------------------- - */ - 'sheets' => array( - - /* - |-------------------------------------------------------------------------- - | Example sheet - |-------------------------------------------------------------------------- - | - | Example sheet "test" will grab the firstname at cell A2 - | - */ - - 'test' => array( - - 'firstname' => 'A2' - - ) - - ) - ), - - 'views' => array( - - /* - |-------------------------------------------------------------------------- - | Styles - |-------------------------------------------------------------------------- - | - | The default styles which will be used when parsing a view - | - */ - - 'styles' => array( - - /* - |-------------------------------------------------------------------------- - | Table headings - |-------------------------------------------------------------------------- - */ - 'th' => array( - 'font' => array( - 'bold' => true, - 'size' => 12, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Strong tags - |-------------------------------------------------------------------------- - */ - 'strong' => array( - 'font' => array( - 'bold' => true, - 'size' => 12, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Bold tags - |-------------------------------------------------------------------------- - */ - 'b' => array( - 'font' => array( - 'bold' => true, - 'size' => 12, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Italic tags - |-------------------------------------------------------------------------- - */ - 'i' => array( - 'font' => array( - 'italic' => true, - 'size' => 12, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Heading 1 - |-------------------------------------------------------------------------- - */ - 'h1' => array( - 'font' => array( - 'bold' => true, - 'size' => 24, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Heading 2 - |-------------------------------------------------------------------------- - */ - 'h2' => array( - 'font' => array( - 'bold' => true, - 'size' => 18, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Heading 2 - |-------------------------------------------------------------------------- - */ - 'h3' => array( - 'font' => array( - 'bold' => true, - 'size' => 13.5, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Heading 4 - |-------------------------------------------------------------------------- - */ - 'h4' => array( - 'font' => array( - 'bold' => true, - 'size' => 12, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Heading 5 - |-------------------------------------------------------------------------- - */ - 'h5' => array( - 'font' => array( - 'bold' => true, - 'size' => 10, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Heading 6 - |-------------------------------------------------------------------------- - */ - 'h6' => array( - 'font' => array( - 'bold' => true, - 'size' => 7.5, - ) - ), - - /* - |-------------------------------------------------------------------------- - | Hyperlinks - |-------------------------------------------------------------------------- - */ - 'a' => array( - 'font' => array( - 'underline' => true, - 'color' => array('argb' => 'FF0000FF'), - ) - ), - - /* - |-------------------------------------------------------------------------- - | Horizontal rules - |-------------------------------------------------------------------------- - */ - 'hr' => array( - 'borders' => array( - 'bottom' => array( - 'style' => 'thin', - 'color' => array('FF000000') - ), - ) - ) - ) - - ) - -);