Skip to content

Commit 9183ef6

Browse files
committed
renaming
1 parent 9ebf2da commit 9183ef6

19 files changed

+61
-58
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: vormkracht10
1+
github: backstagephp

.github/ISSUE_TEMPLATE/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/vormkracht10/laravel-static/discussions/new?category=q-a
4+
url: https://github.com/backstagephp/laravel-static/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/vormkracht10/laravel-static/discussions/new?category=ideas
7+
url: https://github.com/backstagephp/laravel-static/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/vormkracht10/laravel-static/security/policy
10+
url: https://github.com/backstagephp/laravel-static/security/policy
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
13-
url: https://github.com/vormkracht10/laravel-static/issues/new
13+
url: https://github.com/backstagephp/laravel-static/issues/new
1414
about: Report a reproducible bug

.phpactor.json

+4
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

+1-1
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

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Build a static website with Laravel on the backend
22

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

1010
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
1111

@@ -14,7 +14,7 @@ This is where your description should go. Limit it to a paragraph or two. Consid
1414
You can install the package via composer:
1515

1616
```bash
17-
composer require vormkracht10/laravel-static
17+
composer require backstage/laravel-static
1818
```
1919

2020
You can publish and run the migrations with:
@@ -46,8 +46,7 @@ php artisan vendor:publish --tag="laravel-static-views"
4646
## Usage
4747

4848
```php
49-
$laravelStatic = new Vormkracht10\LaravelStatic();
50-
echo $laravelStatic->echoPhrase('Hello, Vormkracht10!');
49+
5150
```
5251

5352
## Testing
@@ -70,7 +69,7 @@ Please review [our security policy](../../security/policy) on how to report secu
7069

7170
## Credits
7271

73-
- [Mark van Eijk](https://github.com/vormkracht10)
72+
- [Mark van Eijk](https://github.com/backstagephp)
7473
- [All Contributors](../../contributors)
7574

7675
## License

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "vormkracht10/laravel-static",
2+
"name": "backstage/laravel-static",
33
"description": "Serving your Laravel app with speed using static caching",
44
"keywords": [
55
"vormkracht10",
66
"laravel",
77
"laravel-static"
88
],
9-
"homepage": "https://github.com/vormkracht10/laravel-static",
9+
"homepage": "https://github.com/backstagephp/laravel-static",
1010
"license": "MIT",
1111
"authors": [
1212
{
@@ -17,10 +17,10 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/contracts": "^9.0|^10.0|^11.0",
20+
"illuminate/contracts": "^11.0 || ^12.0",
2121
"laravel/helpers": "^1.6",
2222
"spatie/crawler": "^8.0",
23-
"spatie/laravel-package-tools": "^1.13.0",
23+
"spatie/laravel-package-tools": "^1.15.0",
2424
"voku/html-min": "^4.5"
2525
},
2626
"require-dev": {
@@ -35,12 +35,12 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"Vormkracht10\\LaravelStatic\\": "src"
38+
"Backstage\\Laravel\\Static\\": "src"
3939
}
4040
},
4141
"autoload-dev": {
4242
"psr-4": {
43-
"Vormkracht10\\LaravelStatic\\Tests\\": "tests"
43+
"Backstage\\Laravel\\Static\\Tests\\": "tests"
4444
}
4545
},
4646
"scripts": {
@@ -59,13 +59,13 @@
5959
"extra": {
6060
"laravel": {
6161
"providers": [
62-
"Vormkracht10\\LaravelStatic\\LaravelStaticServiceProvider"
62+
"Backstage\\Laravel\\Static\\StaticServiceProvider"
6363
],
6464
"aliases": {
65-
"LaravelStatic": "Vormkracht10\\LaravelStatic\\Facades\\LaravelStatic"
65+
"Static": "Backstage\\Laravel\\Static\\Facades\\StaticCache"
6666
}
6767
}
6868
},
6969
"minimum-stability": "dev",
7070
"prefer-stable": true
71-
}
71+
}

config/static.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use Spatie\Crawler\CrawlProfiles\CrawlInternalUrls;
4-
use Vormkracht10\LaravelStatic\Crawler\StaticCrawlObserver;
4+
use Backstage\Laravel\Static\Crawler\StaticCrawlObserver;
55

66
return [
77
/**

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
verbose="true"
2020
>
2121
<testsuites>
22-
<testsuite name="Vormkracht10 Test Suite">
22+
<testsuite name="Backstage Test Suite">
2323
<directory>tests</directory>
2424
</testsuite>
2525
</testsuites>

src/Commands/StaticBuildCommand.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Commands;
3+
namespace Backstage\Laravel\Static\Commands;
44

55
use Exception;
66
use GuzzleHttp\RequestOptions;
@@ -10,8 +10,8 @@
1010
use Illuminate\Support\Collection;
1111
use Illuminate\Support\Facades\Route;
1212
use Spatie\Crawler\Crawler;
13-
use Vormkracht10\LaravelStatic\LaravelStatic;
14-
use Vormkracht10\LaravelStatic\Middleware\StaticResponse;
13+
use Backstage\Laravel\Static\StaticCache;
14+
use Backstage\Laravel\Static\Middleware\StaticResponse;
1515

1616
class StaticBuildCommand extends Command
1717
{
@@ -21,9 +21,9 @@ class StaticBuildCommand extends Command
2121

2222
protected Repository $config;
2323

24-
protected LaravelStatic $static;
24+
protected Static $static;
2525

26-
public function __construct(Repository $config, LaravelStatic $static)
26+
public function __construct(Repository $config, Static $static)
2727
{
2828
parent::__construct();
2929

src/Commands/StaticClearCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Commands;
3+
namespace Backstage\Laravel\Static\Commands;
44

55
use Illuminate\Config\Repository;
66
use Illuminate\Console\Command;
77
use Illuminate\Routing\Route;
88
use Illuminate\Support\Arr;
99
use Illuminate\Support\Facades\Route as Router;
10-
use Vormkracht10\LaravelStatic\LaravelStatic;
10+
use Backstage\Laravel\Static\StaticCache;
1111

1212
class StaticClearCommand extends Command
1313
{
1414
public $signature = 'static:clear {--u|uri=*} {--r|routes=*} {--d|domain=*}';
1515

1616
public $description = 'Clear static cached files';
1717

18-
public function __construct(protected Repository $config, protected LaravelStatic $static)
18+
public function __construct(protected Repository $config, protected Static $static)
1919
{
2020
parent::__construct();
2121
}

src/Crawler/StaticCrawlObserver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Crawler;
3+
namespace Backstage\Laravel\Static\Crawler;
44

55
use GuzzleHttp\Exception\RequestException;
66
use Illuminate\Console\View\Components\Factory as ComponentFactory;
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Facades;
3+
namespace Backstage\Laravel\Static\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

77
/**
88
* @see \Vormkracht10\LaravelStatic\LaravelStatic
99
*/
10-
class LaravelStatic extends Facade
10+
class StaticCache extends Facade
1111
{
1212
protected static function getFacadeAccessor()
1313
{
14-
return \Vormkracht10\LaravelStatic\LaravelStatic::class;
14+
return \Backstage\Laravel\Static\StaticCache::class;
1515
}
1616
}

src/Middleware/PreventStaticResponseMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Middleware;
3+
namespace Backstage\Laravel\Static\Middleware;
44

55
use Closure;
66
use Illuminate\Http\Request;

src/Middleware/StaticResponse.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Middleware;
3+
namespace Backstage\Laravel\Static\Middleware;
44

55
use Closure;
66
use Illuminate\Config\Repository;
77
use Illuminate\Http\JsonResponse;
88
use Illuminate\Http\Request;
99
use voku\helper\HtmlMin;
10-
use Vormkracht10\LaravelStatic\Facades\LaravelStatic;
10+
use Backstage\Laravel\Static\Facades\StaticCache;
1111

1212
class StaticResponse
1313
{
@@ -124,7 +124,7 @@ public function createStaticFile(Request $request, $response): void
124124
return;
125125
}
126126

127-
$disk = LaravelStatic::disk();
127+
$disk = StaticCache::disk();
128128

129129
if (! $disk->exists('.gitignore')) {
130130
$disk->put('.gitignore', '*' . PHP_EOL . '!.gitignore');

src/LaravelStatic.php src/StaticCache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic;
3+
namespace Backstage\Laravel\Static;
44

55
use Illuminate\Config\Repository;
66
use Illuminate\Filesystem\Filesystem as Files;
77
use Illuminate\Filesystem\FilesystemManager as Storage;
88

9-
class LaravelStatic
9+
class StaticCache
1010
{
1111
public function __construct(
1212
protected Repository $config,

src/LaravelStaticServiceProvider.php src/StaticServiceProvider.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic;
3+
namespace Backstage\Laravel\Static;
44

55
use Illuminate\Contracts\Http\Kernel;
66
use Spatie\LaravelPackageTools\Package;
77
use Spatie\LaravelPackageTools\PackageServiceProvider;
8-
use Vormkracht10\LaravelStatic\Commands\StaticBuildCommand;
9-
use Vormkracht10\LaravelStatic\Commands\StaticClearCommand;
10-
use Vormkracht10\LaravelStatic\Middleware\PreventStaticResponseMiddleware;
8+
use Backstage\Laravel\Static\Commands\StaticBuildCommand;
9+
use Backstage\Laravel\Static\Commands\StaticClearCommand;
10+
use Backstage\Laravel\Static\Middleware\PreventStaticResponseMiddleware;
1111

12-
class LaravelStaticServiceProvider extends PackageServiceProvider
12+
class StaticServiceProvider extends PackageServiceProvider
1313
{
1414
public function configurePackage(Package $package): void
1515
{

tests/Feature/StaticCacheTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
use Illuminate\Support\Facades\Route;
44
use voku\helper\HtmlMin;
5-
use Vormkracht10\LaravelStatic\Facades\LaravelStatic;
6-
use Vormkracht10\LaravelStatic\Middleware\StaticResponse;
5+
use Backstage\Laravel\Static\Facades\StaticCache;
6+
use Backstage\Laravel\Static\Middleware\StaticResponse;
77

88
it('can cache a page response', function ($route) {
99
config([
1010
'static.files.disk' => 'local',
1111
]);
1212

13-
$disk = LaravelStatic::disk();
13+
$disk = StaticCache::disk();
1414

1515
Route::get($route, fn () => $route)
1616
->middleware(StaticResponse::class);
@@ -34,7 +34,7 @@
3434
'static.options.minify_html' => true,
3535
]);
3636

37-
$disk = LaravelStatic::disk();
37+
$disk = StaticCache::disk();
3838

3939
$html = <<<'HTML'
4040
<h1>Hello!</h1>

tests/Pest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
use Vormkracht10\LaravelStatic\Tests\TestCase;
3+
use Backstage\Laravel\Static\Tests\TestCase;
44

55
uses(TestCase::class)->in(__DIR__);

tests/TestCase.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Vormkracht10\LaravelStatic\Tests;
3+
namespace Backstage\Laravel\Static\Tests;
44

55
use Orchestra\Testbench\TestCase as Orchestra;
6-
use Vormkracht10\LaravelStatic\LaravelStaticServiceProvider;
6+
use Backstage\Laravel\Static\StaticServiceProvider;
77

88
class TestCase extends Orchestra
99
{
@@ -15,7 +15,7 @@ protected function setUp(): void
1515
protected function getPackageProviders($app)
1616
{
1717
return [
18-
LaravelStaticServiceProvider::class,
18+
StaticServiceProvider::class,
1919
];
2020
}
2121
}

0 commit comments

Comments
 (0)