Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds CSV Importing feature #11

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Conversation

vitorccs
Copy link
Owner

@vitorccs vitorccs commented Jul 19, 2024

v2.0

  • Adds importing feature (can import from Laravel Disks, local files, strings or resources)
  • In the exporting feature, adds new method "stream" to retrieve the exported content as a PHP stream
  • Improved coverage of unit tests

Break change:

It is required to change the importing namespace:

// v1.0 (old)
use Vitorccs\LaravelCsv\Concerns\Exportable;
use Vitorccs\LaravelCsv\Concerns\FromArray;
use Vitorccs\LaravelCsv\Concerns\FromCollection;
use Vitorccs\LaravelCsv\Concerns\FromQuery;
// v2.0 (new)
use Vitorccs\LaravelCsv\Concerns\Exportables\Exportable;
use Vitorccs\LaravelCsv\Concerns\Exportables\FromArray;
use Vitorccs\LaravelCsv\Concerns\Exportables\FromCollection;
use Vitorccs\LaravelCsv\Concerns\Exportables\FromQuery;

@vitorccs vitorccs self-assigned this Jul 19, 2024
@vitorccs vitorccs merged commit d1a6a4a into master Jul 19, 2024
1 check passed
@vitorccs vitorccs deleted the feature/add_importing_feature branch July 19, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant