Skip to main content

What is Time Series?

info

Laravel Time Series is in pre-release, feel free to star or contribute if you find interest in this project!

Laravel Time Series aims to provide a simple and understandable interface for developers to create and maintain data projections from Eloquent models easily.

The name "Time Series" refers to the celestial body of the same name that radiates from the center of galaxies, absorbs an immense amount of matter and distorts the space-time. Well, consider it as a metaphor of what it can do πŸ˜„!

What problem does it solve?​

✨ One of the typical use cases solved by Laravel Time Series is the creation and maintenance of statistical data represented as time series (aka your statistic dashboard).

Instead of reinventing the wheel every time you create or query data projections, Time Series will provide you with the tools to develop and maintain them and ultimately save you time.

What are the prerequisites?​

πŸ›  Your project must be based on Laravel (version 8 or above), you must have a good understanding of the framework and especially Eloquent.

When should I use it?​

βœ… When you need an easy and fast API to build complex data like statistics, rates, aggregates based on your Eloquent models and convert them to a time series.

When should I not use it?​

🚫 Can you solve your problem with a single SQL query? This might not be your case as you won't benefit from the package. The goal of Time Series is to provide help with complex data, allowing you to query it in a quick and easy way.

What are the alternatives to Time Series?​

πŸ’Ž One of the alternatives to this package is Laravel Event Sourcing built by Spatie, but keep in mind that it provides a low-level API to implement projections without time series, you'll have to build them by yourself.

πŸ“Š On the other hand if you are only looking for a tool to convert your data into a chart, then I advise you to look at the Charts package.

How to get started?​

πŸ†• If you want to discover the library, I advise you to follow the Quickstart section.

If you are already familiar with the library, the next section will guide you through the installation process.