Skip to content

Commit 852e256

Browse files
Merge pull request #21 from timothepearce/rename-package
Rename package
2 parents 37d74aa + f1562a2 commit 852e256

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+337
-294
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/timothepearce/laravel-quasar/discussions/new?category=q-a
4+
url: https://github.com/timothepearce/laravel-time-series/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/timothepearce/laravel-quasar/discussions/new?category=ideas
7+
url: https://github.com/timothepearce/laravel-time-series/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a bug
10-
url: https://github.com/timothepearce/laravel-quasar/issues/new
10+
url: https://github.com/timothepearce/laravel-time-series/issues/new
1111
about: Report a reproducable bug

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `laravel-quasar` will be documented in this file.
3+
All notable changes to `laravel-time-series` will be documented in this file.
44

55
## 1.0.0 - 202X-XX-XX
66

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Laravel Quasar <[email protected]>
3+
Copyright (c) Laravel Time Series <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
![Logo](./static/logo.svg#gh-light-mode-only)![Logo](./static/logo_white.svg#gh-dark-mode-only)
22

33
<p align="center">
4-
<a href="https://packagist.org/packages/timothepearce/laravel-quasar">
5-
<img src="http://poser.pugx.org/timothepearce/laravel-quasar/v/unstable" alt="Latest unstable Version" />
4+
<a href="https://packagist.org/packages/timothepearce/laravel-time-series">
5+
<img src="http://poser.pugx.org/timothepearce/laravel-time-series/v/unstable" alt="Latest unstable Version" />
66
</a>
77

8-
<a href="https://packagist.org/packages/timothepearce/laravel-quasar">
9-
<img src="http://poser.pugx.org/timothepearce/laravel-quasar/downloads" alt="Download count" />
8+
<a href="https://packagist.org/packages/timothepearce/laravel-time-series">
9+
<img src="http://poser.pugx.org/timothepearce/laravel-time-series/downloads" alt="Download count" />
1010
</a>
1111

12-
<a href="https://github.com/timothepearce/laravel-quasar/actions/workflows/run-tests.yml">
13-
<img src="https://github.com/timothepearce/laravel-quasar/actions/workflows/run-tests.yml/badge.svg" alt="">
12+
<a href="https://github.com/timothepearce/laravel-time-series/actions/workflows/run-tests.yml">
13+
<img src="https://github.com/timothepearce/laravel-time-series/actions/workflows/run-tests.yml/badge.svg" alt="">
1414
</a>
1515
</p>
1616

@@ -20,18 +20,18 @@ Build your time series with ease
2020

2121
## About
2222

23-
Laravel Quasar provides an API to create and maintain data projections (statistics, aggregates, time series, etc.) from your Eloquent models.
23+
Laravel Time Series provides an API to projects data from your Eloquent models and convert them to time series.
2424

2525
## Documentation
2626

27-
The full documentation can be found [here](https://timothepearce.github.io/laravel-quasar-docs).
27+
The full documentation can be found [here](https://timothepearce.github.io/laravel-time-series-docs).
2828

2929
## Usage
3030

3131
### Installation
3232

3333
```bash
34-
composer require timothepearce/laravel-quasar
34+
composer require timothepearce/laravel-time-series
3535
```
3636

3737
### Migrate the tables
@@ -52,7 +52,7 @@ When you want to make your model projectable, you must add it the `Projectable`
5252

5353
```php
5454
use App\Models\Projections\MyProjection;
55-
use TimothePearce\Quasar\Projectable;
55+
use TimothePearce\TimeSeries\Projectable;
5656

5757
class MyProjectableModel extends Model
5858
{
@@ -67,9 +67,9 @@ class MyProjectableModel extends Model
6767
### Implement a Projection
6868

6969
When you're implementing a projection, follow theses three steps:
70-
* [Define your projection periods](https://timothepearce.github.io/laravel-quasar-docs/getting-started/implement-a-projection#define-your-projection-periods)
71-
* [Add a default content](https://timothepearce.github.io/laravel-quasar-docs/getting-started/implement-a-projection#define-the-default-content-of-your-projection)
72-
* [Bind your projection to the projectable models](https://timothepearce.github.io/laravel-quasar-docs/getting-started/implement-a-projection#implement-the-binding)
70+
* [Define your projection periods](https://timothepearce.github.io/laravel-time-series-docs/getting-started/implement-a-projection#define-your-projection-periods)
71+
* [Add a default content](https://timothepearce.github.io/laravel-time-series-docs/getting-started/implement-a-projection#define-the-default-content-of-your-projection)
72+
* [Bind your projection to the projectable models](https://timothepearce.github.io/laravel-time-series-docs/getting-started/implement-a-projection#implement-the-binding)
7373

7474
### Query a Projection
7575

@@ -102,7 +102,7 @@ Note that this method **fill the missing projections between the given dates** w
102102
## Credits
103103

104104
- [Timothé Pearce](https://github.com/timothepearce)
105-
- [All contributors](https://github.com/timothepearce/laravel-quasar/contributors)
105+
- [All contributors](https://github.com/timothepearce/laravel-time-series/contributors)
106106

107107
## License
108108

composer.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"name": "timothepearce/laravel-quasar",
3-
"description": "Laravel Quasar provides an API to create and maintain data projections (statistics, aggregates, etc.) from you Eloquent models.",
2+
"name": "timothepearce/laravel-time-series",
3+
"description": "Laravel Time Series provides an API to create and maintain projected data from you Eloquent models, and represent them as time-series.",
44
"type": "library",
55
"keywords": [
6-
"LaravelQuasar",
7-
"laravel-quasar",
6+
"LaravelTimeSeries",
7+
"laravel-time-series",
88
"laravel",
9-
"quasar",
9+
"time-series",
1010
"stats",
1111
"statistics",
1212
"projections",
1313
"projectors",
1414
"aggregator"
1515
],
16-
"homepage": "https://github.com/timothepearce/laravel-quasar",
16+
"homepage": "https://github.com/timothepearce/laravel-time-series",
1717
"license": "MIT",
1818
"authors": [
1919
{
@@ -36,13 +36,13 @@
3636
},
3737
"autoload": {
3838
"psr-4": {
39-
"TimothePearce\\Quasar\\": "src"
39+
"TimothePearce\\TimeSeries\\": "src"
4040
}
4141
},
4242
"autoload-dev": {
4343
"psr-4": {
44-
"TimothePearce\\Quasar\\Tests\\": "tests",
45-
"TimothePearce\\Quasar\\Tests\\Database\\Factories\\": "tests/database/factories"
44+
"TimothePearce\\TimeSeries\\Tests\\": "tests",
45+
"TimothePearce\\TimeSeries\\Tests\\Database\\Factories\\": "tests/database/factories"
4646
}
4747
},
4848
"scripts": {
@@ -51,12 +51,15 @@
5151
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
5252
},
5353
"config": {
54-
"sort-packages": true
54+
"sort-packages": true,
55+
"allow-plugins": {
56+
"composer/package-versions-deprecated": true
57+
}
5558
},
5659
"extra": {
5760
"laravel": {
5861
"providers": [
59-
"TimothePearce\\Quasar\\QuasarServiceProvider"
62+
"TimothePearce\\TimeSeries\\TimeSeriesServiceProvider"
6063
]
6164
}
6265
},

config/quasar.php renamed to config/time-series.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
'models_namespace' => 'App\\Models',
1111

1212
/*
13-
* When enabled, Quasar will process the projections on a queue.
13+
* When enabled, TimeSeries will process the projections on a queue.
1414
*/
1515
'queue' => false,
1616

1717
/*
18-
* The specific queue name used by Quasar.
18+
* The specific queue name used by TimeSeries.
1919
* Leave empty to use the default queue.
2020
*/
2121
'queue_name' => '',

database/migrations/2021_09_01_010000_create_quasar_projections_table.php renamed to database/migrations/2021_09_01_010000_create_time_series_projections_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return new class extends Migration {
88
public function up()
99
{
10-
Schema::create('quasar_projections', function (Blueprint $table) {
10+
Schema::create('time_series_projections', function (Blueprint $table) {
1111
$table->id();
1212

1313
$table->string('projection_name');
@@ -24,6 +24,6 @@ public function up()
2424

2525
public function down()
2626
{
27-
Schema::dropIfExists('quasar_projections');
27+
Schema::dropIfExists('time_series_projections');
2828
}
2929
};

database/migrations/2021_09_01_020000_create_quasar_projectables_table.php renamed to database/migrations/2021_09_01_020000_create_time_series_projectables_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
return new class extends Migration {
88
public function up()
99
{
10-
Schema::create('quasar_projectables', function (Blueprint $table) {
10+
Schema::create('time_series_projectables', function (Blueprint $table) {
1111
$table->foreignId('projection_id')
12-
->constrained('quasar_projections')
12+
->constrained('time_series_projections')
1313
->onDelete('cascade');
1414

1515
$table->unsignedBigInteger('projectable_id');
@@ -21,6 +21,6 @@ public function up()
2121

2222
public function down()
2323
{
24-
Schema::dropIfExists('quasar_projectables');
24+
Schema::dropIfExists('time_series_projectables');
2525
}
2626
};

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
verbose="true"
2020
>
2121
<testsuites>
22-
<testsuite name="Quasar Test Suite">
22+
<testsuite name="Time Series Test Suite">
2323
<directory>tests</directory>
2424
</testsuite>
2525
</testsuites>

src/Collections/ProjectionCollection.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

3-
namespace TimothePearce\Quasar\Collections;
3+
namespace TimothePearce\TimeSeries\Collections;
44

55
use Illuminate\Database\Eloquent\Collection;
66
use Illuminate\Support\Carbon;
77
use Illuminate\Support\Str;
8-
use TimothePearce\Quasar\Exceptions\EmptyProjectionCollectionException;
9-
use TimothePearce\Quasar\Exceptions\MultiplePeriodsException;
10-
use TimothePearce\Quasar\Exceptions\MultipleProjectionsException;
11-
use TimothePearce\Quasar\Exceptions\OverlappingFillBetweenDatesException;
12-
use TimothePearce\Quasar\Models\Projection;
8+
use TimothePearce\TimeSeries\Exceptions\EmptyProjectionCollectionException;
9+
use TimothePearce\TimeSeries\Exceptions\MultiplePeriodsException;
10+
use TimothePearce\TimeSeries\Exceptions\MultipleProjectionsException;
11+
use TimothePearce\TimeSeries\Exceptions\OverlappingFillBetweenDatesException;
12+
use TimothePearce\TimeSeries\Models\Projection;
1313

1414
class ProjectionCollection extends Collection
1515
{

0 commit comments

Comments
 (0)