mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Re-added the parsecsv.lib.php file for compatibility
This commit is contained in:
23
parsecsv.lib.php
Normal file
23
parsecsv.lib.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// This file should not be used at all! It purely exists to reduce the
|
||||
// maintenance burden for existing code using this repo.
|
||||
|
||||
// Check if people used Composer to include this project in theirs
|
||||
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
die(
|
||||
"Please run `composer dump-autoload` to build the autoloader.\n\n" .
|
||||
"Actually, you should consider not including/requiring this file \n" .
|
||||
" " . __FILE__ . "\n" .
|
||||
"Just run `composer require parsecsv/php-parsecsv` and look at the \n" .
|
||||
"'examples' directory of this repository."
|
||||
);
|
||||
}
|
||||
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
// This wrapper class should not be used by new projects. Please look at the
|
||||
// examples to find the up-to-date way of using this repo.
|
||||
class parseCSV extends ParseCsv\Csv {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user