Skip to content

Commit 979650b

Browse files
committed
renaming
1 parent bba425c commit 979650b

28 files changed

+97
-91
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: vormkracht10
1+
github: backstagephp

.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/vormkracht10/laravel-permanent-cache/discussions/new?category=q-a
4+
url: https://github.com/backstagephp/laravel-permanent-cache/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/vormkracht10/laravel-permanent-cache/discussions/new?category=ideas
7+
url: https://github.com/backstagephp/laravel-permanent-cache/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/vormkracht10/laravel-permanent-cache/security/policy
10+
url: https://github.com/backstagephp/laravel-permanent-cache/security/policy
1111
about: Learn how to notify us for sensitive bugs

.phpactor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "/phpactor.schema.json",
3+
"language_server_phpstan.enabled": false
4+
}

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) vormkracht10 <mark@vormkracht10.nl>
3+
Copyright (c) Backstage <mark@backstagephp.com>
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: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Laravel Permanent Cache
22

3-
[![Total Downloads](https://img.shields.io/packagist/dt/vormkracht10/laravel-permanent-cache.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/laravel-permanent-cache)
4-
[![Tests](https://github.com/vormkracht10/laravel-permanent-cache/actions/workflows/pest.yml/badge.svg?branch=main)](https://github.com/vormkracht10/laravel-permanent-cache/actions/workflows/run-tests.yml)
5-
[![PHPStan](https://github.com/vormkracht10/laravel-permanent-cache/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/vormkracht10/laravel-permanent-cache/actions/workflows/phpstan.yml)
6-
![GitHub release (latest by date)](https://img.shields.io/github/v/release/vormkracht10/laravel-permanent-cache)
7-
![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/vormkracht10/laravel-permanent-cache)
8-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/vormkracht10/laravel-permanent-cache.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/laravel-permanent-cache)
3+
[![Total Downloads](https://img.shields.io/packagist/dt/backstage/laravel-permanent-cache.svg?style=flat-square)](https://packagist.org/packages/backstage/laravel-permanent-cache)
4+
[![Tests](https://github.com/backstagephp/laravel-permanent-cache/actions/workflows/pest.yml/badge.svg?branch=main)](https://github.com/backstagephp/laravel-permanent-cache/actions/workflows/run-tests.yml)
5+
[![PHPStan](https://github.com/backstagephp/laravel-permanent-cache/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/backstagephp/laravel-permanent-cache/actions/workflows/phpstan.yml)
6+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/backstagephp/laravel-permanent-cache)
7+
![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/backstage/laravel-permanent-cache)
8+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/backstage/laravel-permanent-cache.svg?style=flat-square)](https://packagist.org/packages/backstage/laravel-permanent-cache)
99

1010
This package aims to provide functionality of using a *permanent* cache for tasks using heavy Eloquent models, database queries or other long running tasks in your Laravel app. The permanent cache updates itself in the background using a scheduled task or by listening to an event so no users are harmed waiting on a given request.
1111

@@ -16,13 +16,13 @@ Its use case is primarily to be used for heavy tasks that should return complex
1616
You can install the package via composer:
1717

1818
```bash
19-
composer require vormkracht10/laravel-permanent-cache
19+
composer require backstage/laravel-permanent-cache
2020
```
2121

2222
Optionally, publish config files to change the default config:
2323

2424
```bash
25-
php artisan vendor:publish --provider="Vormkracht10\PermanentCache\PermanentCacheServiceProvider"
25+
php artisan vendor:publish --provider="Backstage\PermanentCache\Laravel\PermanentCacheServiceProvider"
2626
```
2727

2828
The default config options:
@@ -57,7 +57,7 @@ We recommend putting this in the `boot` method of your `AppServiceProvider`.
5757
You can register caches in multiple ways:
5858

5959
```php
60-
use \Vormkracht10\PermanentCache\Facades\PermanentCache;
60+
use Backstage\PermanentCache\Laravel\Facades\PermanentCache;
6161

6262
# When you don't need parameters per class, you can use direct parameters or an array:
6363

@@ -98,7 +98,7 @@ You can define the cache store and key using a `$store` property on the class, f
9898
the definition: `cache-driver:key`, for example: `redis:a-unique-cache-key`:
9999

100100
```php
101-
use Vormkracht10\PermanentCache\Cached;
101+
use Backstage\PermanentCache\Laravel\Cached;
102102

103103
class LongRunningTask extends Cached
104104
{
@@ -116,7 +116,7 @@ class LongRunningTask extends Cached
116116
If you only want to listen for a single event you can type hint the event in the `run` method:
117117

118118
```php
119-
use Vormkracht10\PermanentCache\Cached;
119+
use Backstage\PermanentCache\Laravel\Cached;
120120

121121
class LongRunningTaskListeningForEvents extends Cached
122122
{
@@ -134,7 +134,7 @@ class LongRunningTaskListeningForEvents extends Cached
134134
Permanent Caches can be updated by listening to *multiple* events using an array on the `$events` property:
135135

136136
```php
137-
use Vormkracht10\PermanentCache\Cached;
137+
use Backstage\PermanentCache\Laravel\Cached;
138138

139139
class LongRunningTaskListeningForEvents extends Cached
140140
{
@@ -161,8 +161,8 @@ Note that if you decide to listen to events *and* schedule your cache, you shoul
161161
accept an `$event` parameter in the `run` method, because when the schedule runs, this won't be given to you.
162162

163163
```php
164-
use Vormkracht10\PermanentCache\Cached;
165-
use Vormkracht10\PermanentCache\Scheduled;
164+
use Backstage\PermanentCache\Laravel\Cached;
165+
use Backstage\PermanentCache\Laravel\Scheduled;
166166

167167
class LongRunningTaskExecutedPeriodicallyOrWhenAnEventHappens extends Cached implements Scheduled
168168
{
@@ -194,8 +194,8 @@ Permanent Caches can be updated using a dispatch to the queue by implementing La
194194

195195
```php
196196
use Illuminate\Contracts\Queue\ShouldQueue;
197-
use Vormkracht10\PermanentCache\Cached;
198-
use Vormkracht10\PermanentCache\Scheduled;
197+
use Backstage\PermanentCache\Laravel\Cached;
198+
use Backstage\PermanentCache\Laravel\Scheduled;
199199

200200
class LongRunningTaskExecutedPeriodicallyOrWhenAnEventHappensDispatchedOnTheQueue extends Cached implements ShouldQueue
201201
{
@@ -217,8 +217,8 @@ using the scheduler, or queue, while optionally listening for events to happen t
217217

218218
```php
219219
use Illuminate\Contracts\Queue\ShouldQueue;
220-
use Vormkracht10\PermanentCache\CachedComponent;
221-
use Vormkracht10\PermanentCache\Scheduled;
220+
use Backstage\PermanentCache\Laravel\CachedComponent;
221+
use Backstage\PermanentCache\Laravel\Scheduled;
222222

223223
class HeavyComponent extends CachedComponent implements Scheduled, ShouldQueue
224224
{
@@ -258,7 +258,7 @@ LongTaskInPermanentCache::update(['parameter' => 'value']);
258258
Or you can update all caches at once:
259259

260260
```php
261-
use Vormkracht10\PermanentCache\Facades\PermanentCache;
261+
use Backstage\PermanentCache\Laravel\Facades\PermanentCache;
262262

263263
PermanentCache::update();
264264
```
@@ -269,10 +269,10 @@ These events get dispatched when a Permanent Cache gets updated:
269269

270270
```php
271271
# Before updating the cache
272-
use Vormkracht10\PermanentCache\Events\PermanentCacheUpdating;
272+
use Backstage\PermanentCache\Laravel\Events\PermanentCacheUpdating;
273273

274274
# After the cache has been updated
275-
use Vormkracht10\PermanentCache\Events\PermanentCacheUpdated;
275+
use Backstage\PermanentCache\Laravel\Events\PermanentCacheUpdated;
276276
```
277277

278278
## Console commands
@@ -291,7 +291,7 @@ php artisan permanent-cache:status --parameters --filter=
291291

292292
## Credits
293293

294-
- [Mark van Eijk](https://github.com/vormkracht10)
294+
- [Mark van Eijk](https://github.com/markvaneijk)
295295
- [David den Haan](https://github.com/david-d-h)
296296
- [All Contributors](../../contributors)
297297

composer.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
{
2-
"name": "vormkracht10/laravel-permanent-cache",
2+
"name": "backstage/laravel-permanent-cache",
33
"description": "Using Laravel Permanent Cache you can cache intensive operations permanently and update them in the background, so your users don't have to wait!",
44
"keywords": [
5+
"backstage",
56
"vormkracht10",
67
"laravel",
7-
"laravel-permanent-cache"
8+
"php",
9+
"cache",
10+
"permanent-cache"
811
],
9-
"homepage": "https://github.com/vormkracht10/laravel-permanent-cache",
12+
"homepage": "https://github.com/backstagephp/laravel-permanent-cache",
1013
"license": "MIT",
1114
"authors": [
1215
{
1316
"name": "Mark van Eijk",
14-
"email": "mark@vormkracht10.nl",
17+
"email": "mark@backstagephp.com",
1518
"role": "Developer"
1619
}
1720
],
1821
"require": {
1922
"php": "^8.1",
20-
"illuminate/contracts": "^10.0|^11.0",
23+
"illuminate/contracts": "^10.0 || ^11.0 || ^12.0",
2124
"laravel/helpers": "^1.7",
2225
"lorisleiva/cron-translator": "^0.4.5",
2326
"spatie/emoji": "^4.1",
24-
"spatie/laravel-package-tools": "^1.14.0"
27+
"spatie/laravel-package-tools": "^1.15.0"
2528
},
2629
"require-dev": {
2730
"larastan/larastan": "^2.9.6",
@@ -37,15 +40,15 @@
3740
},
3841
"autoload": {
3942
"psr-4": {
40-
"Vormkracht10\\PermanentCache\\": "src/"
43+
"Backstage\\PermanentCache\\Laravel\\": "src/"
4144
},
4245
"files": [
4346
"src/helpers.php"
4447
]
4548
},
4649
"autoload-dev": {
4750
"psr-4": {
48-
"Vormkracht10\\PermanentCache\\Tests\\": "tests/"
51+
"Backstage\\PermanentCache\\Laravel\\Tests\\": "tests/"
4952
}
5053
},
5154
"scripts": {
@@ -65,10 +68,10 @@
6568
"extra": {
6669
"laravel": {
6770
"providers": [
68-
"Vormkracht10\\PermanentCache\\PermanentCacheServiceProvider"
71+
"Backstage\\PermanentCache\\Laravel\\PermanentCacheServiceProvider"
6972
],
7073
"aliases": {
71-
"PermanentCache": "Vormkracht10\\PermanentCache\\PermanentCache"
74+
"PermanentCache": "Backstage\\PermanentCache\\Laravel\\PermanentCache"
7275
}
7376
}
7477
},

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
33
<testsuites>
4-
<testsuite name="Vormkracht10 Test Suite">
4+
<testsuite name="Backstage Test Suite">
55
<directory>tests</directory>
66
</testsuite>
77
</testsuites>

src/Cached.php

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

3-
namespace Vormkracht10\PermanentCache;
3+
namespace Backstage\PermanentCache\Laravel;
44

55
/**
66
* @method mixed run()

src/CachedComponent.php

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

3-
namespace Vormkracht10\PermanentCache;
3+
namespace Backstage\PermanentCache\Laravel;
44

55
use Illuminate\Support\HtmlString;
66
use Illuminate\View\Component;

src/CachesValue.php

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

3-
namespace Vormkracht10\PermanentCache;
3+
namespace Backstage\PermanentCache\Laravel;
44

55
use Cron\CronExpression;
66
use Illuminate\Bus\Queueable;
@@ -10,8 +10,8 @@
1010
use Illuminate\Support\Facades\Cache;
1111
use Illuminate\Support\Str;
1212
use ReflectionClass;
13-
use Vormkracht10\PermanentCache\Events\PermanentCacheUpdated;
14-
use Vormkracht10\PermanentCache\Events\PermanentCacheUpdating;
13+
use Backstage\PermanentCache\Laravel\Events\PermanentCacheUpdated;
14+
use Backstage\PermanentCache\Laravel\Events\PermanentCacheUpdating;
1515

1616
/**
1717
* @template V

0 commit comments

Comments
 (0)