Spout
BackwardCompatibilityCheck
Our great sponsors
Spout | BackwardCompatibilityCheck | |
---|---|---|
8 | 3 | |
4,116 | 559 | |
- | 0.4% | |
6.1 | 7.8 | |
almost 2 years ago | 10 days ago | |
PHP | PHP | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Spout
-
How to read a csv file in PHP?
"This project has been archived and is no longer maintained. No bug fix and no additional features will be added. You won't be able to submit new issues or pull requests, and no additional features will be added" https://github.com/box/spout
- Import data from excel file to laravel
-
Best Excel creation lib for PHP
We were testing PHP Spreadsheet and Spout (https://github.com/box/spout). We chose Spout because of its low memory footprint. It is using streams so it is much lighter than PHP Spreadsheet, although it is missing quite a bit of features that PHP Spreadsheet has.
-
Creating multi-worksheet Excel files with Simple Excel
The Simple Excel package uses the box/spout package under the hood. In the readme it states that you can get to the underlying writer using ->getWriter().
-
PHP libraries and tools
box/spout: Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
-
What's the best practice in modifying/inserting values in specific cells of an existing excel file?
If you don't have a lot of formatting requirements beyond just the placement of the data in the correct fields, I really enjoy Box/Spout (https://opensource.box.com/spout/), and they have a way to install it without composer.
-
Packing for importing/exporting csv files
I've also had good experiences with https://github.com/box/spout
-
How to test CSV in Drupal without losing your mind
to add to this, this library is really good when wanting to parse CSV files https://github.com/box/spout
BackwardCompatibilityCheck
-
Some thoughts on the Interface Default Methods RFC
It's also not a big risk because if it does fail it will fail every time you just load the class that implements the interface so probably your while site will error. If you do cursory testing of the new version before you deploy it you can find the problem quickly before it becomes a problem. You can also do static analysis checks on your code to make sure its compatible with the libraries you use including when you upgrade them. And library maintainers can run Roave/BackwardCompatibilityCheck/ to make sure they don't accidentally introduce a new interface method without declaring a new major version.
-
PHP libraries and tools
roave/backward-compatibility-check: Tool to compare two revisions of a class API to check for BC breaks
-
PHP 8.1 is getting Enums, and here is an article about Enums in depth
btw when I talk about breaking BC I don't really mean not compatible with something stored in the DB using a previous version of the code. I mean not compatible with other PHP code written to work with a previous version of the code. It's the sort of issue https://github.com/Roave/BackwardCompatibilityCheck exists to detect, and for which semver says you have to increase the major version number on a library.
What are some alternatives?
PhpSpreadsheet - A pure PHP library for reading and writing spreadsheet files
psalm-plugin-phpunit - A PHPUnit plugin for Psalm
PHPExcel
psalm-plugin-doctrine - Stubs to let Psalm understand Doctrine better
fast-excel - 🦉 Fast Excel import/export for Laravel
local-php-security-checker - PHP security vulnerabilities checker
SecurityAdvisories - :closed_lock_with_key: Security advisories as a simple composer exclusion list, updated daily
WordPress Packagist - WordPress Packagist — manage your plugins with Composer
no-leaks - :potable_water: PHPUnit Plugin for detecting Memory Leaks in code and tests
GrumPHP - A PHP code-quality tool
openapi-psr7-validator - It validates PSR-7 messages (HTTP request/response) against OpenAPI specifications