Skip to content

Conversation

alexszeliga
Copy link

In my use case, I want to stream my export to a download without creating a file, so I use the PHP write only output stream, php://output, but that limits me to using xlsx, with no way to stream csv.

I changed the signature to the download and export methods to allow for an optional extension. When provided, it allows the developer to explicitly select any file type, regardless of filename.

@alexszeliga
Copy link
Author

I simplified the complexity issue and removed a Laravel Str helper dependency, since PHP 8 has semantic methods to replace them.

@DelCirc DelCirc closed this by deleting the head repository Apr 28, 2025
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.

3 participants