date-time
Date and time library for PHP (by brick)
Spout
Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way (by box)
date-time | Spout | |
---|---|---|
8 | 8 | |
318 | 4,116 | |
0.6% | - | |
8.7 | 6.1 | |
14 days ago | almost 2 years ago | |
PHP | PHP | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
date-time
Posts with mentions or reviews of date-time.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-18.
-
PHP libraries and tools
brick/date-time: Date and time library for PHP
brick/date-time: Date and time library for PHP
-
Feedback about fresh open source project
If you're happy to bring in another library, you could replace your Date VO class with the LocalDate class from the brick/datetime library. It does the same thing, just has three int fields inside instead of a string in Y-m-d format.
-
Which native PHP features do you regret not knowing about/adapting earlier?
If you need to store subsets of a date-time-timezone combination, then take a look at brick/date-time instead.
-
Symfony is creating a component Clock to decouples applications from the system clock
Slightly related but https://github.com/brick/date-time is a wonderful library to manage datetime concepts in a proper way.
-
civil-date-time: a civil date/time library for PHP
Looks like a CivilDate is the same thing that brick/date-time calls a LocalDateTime. Does this library have any advantages over the one from Brick?
-
Do you use a DateTime wrapper?
I like https://github.com/brick/date-time
-
Stopping time with PHP
It is a good practice to use an interface to manage the clock in an application, as it allows having full control of time. For example, it eases testing, as it lets us define the concrete time for each test. Frank de Jonge and Matthias Noback have blog posts about it, brick has an implementation, and there is even a PSR proposal to have a ClockInterface.
Spout
Posts with mentions or reviews of Spout.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-28.
-
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
What are some alternatives?
When comparing date-time and Spout you can also consider the following projects:
psalm-plugin - Provides an `ALL-IN-ONE` plugin for Psalm
PhpSpreadsheet - A pure PHP library for reading and writing spreadsheet files
phpunit-speedtrap - Reports on slow-running tests in your PHPUnit test suite
PHPExcel
flow - Flow PHP - data processing framework
fast-excel - 🦉 Fast Excel import/export for Laravel
calendar - 📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
local-php-security-checker - PHP security vulnerabilities checker
Carbon - A simple PHP API extension for DateTime.
WordPress Packagist - WordPress Packagist — manage your plugins with Composer
messenger-kit
GrumPHP - A PHP code-quality tool