Skip to content

Commit 6d7c9fd

Browse files
committed
Rebrand from Webfox to Foxbyte
- Update company name from "Webfox Developments Ltd" to "Foxbyte Ltd" - Change package name from "webfox/laravel-inertia-dataproviders" to "foxbytehq/laravel-inertia-dataproviders" - Update all namespace declarations from "Webfox\InertiaDataProviders" to "Foxbyte\InertiaDataProviders" - Update contact email from [email protected] to [email protected] - Update GitHub URLs to reflect new organization name - Add "replace" field in composer.json to indicate this package replaces the old one - Update documentation and configuration files This prepares the package for republishing under the new Foxbyte brand.
1 parent 4378862 commit 6d7c9fd

17 files changed

+36
-33
lines changed

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) webfox <[email protected].nz>
3+
Copyright (c) Foxbyte Ltd <devops@foxbyte.nz>
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel Data Providers for Inertia.js
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/webfox/laravel-inertia-dataproviders.svg?style=flat-square)](https://packagist.org/packages/webfox/laravel-inertia-dataproviders)
4-
[![Total Downloads](https://img.shields.io/packagist/dt/webfox/laravel-inertia-dataproviders.svg?style=flat-square)](https://packagist.org/packages/webfox/laravel-inertia-dataproviders)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/foxbytehq/laravel-inertia-dataproviders.svg?style=flat-square)](https://packagist.org/packages/foxbytehq/laravel-inertia-dataproviders)
4+
[![Total Downloads](https://img.shields.io/packagist/dt/foxbytehq/laravel-inertia-dataproviders.svg?style=flat-square)](https://packagist.org/packages/foxbytehq/laravel-inertia-dataproviders)
55

66
Data providers encapsulate logic for Inertia views, keep your controllers clean and simple.
77

@@ -10,13 +10,13 @@ Data providers encapsulate logic for Inertia views, keep your controllers clean
1010
Install this package via composer:
1111

1212
```bash
13-
composer require webfox/laravel-inertia-dataproviders
13+
composer require foxbytehq/laravel-inertia-dataproviders
1414
```
1515

1616
Optionally publish the configuration file:
1717

1818
```bash
19-
php artisan vendor:publish --provider="Webfox\InertiaDataProviders\InertiaDataProvidersServiceProvider"
19+
php artisan vendor:publish --provider="Foxbyte\InertiaDataProviders\InertiaDataProvidersServiceProvider"
2020
````
2121

2222
We assume you've already got the Inertia adapter for Laravel installed.
@@ -99,7 +99,7 @@ namespace App\Http\DataProviders;
9999
100100
use Inertia\LazyProp;
101101
use App\Services\InjectedDependency;
102-
use Webfox\InertiaDataProviders\DataProvider;
102+
use Foxbyte\InertiaDataProviders\DataProvider;
103103
104104
class DemoDataProvider extends DataProvider
105105
{
@@ -123,7 +123,7 @@ namespace App\Http\DataProviders;
123123
use Inertia\DeferProp;
124124
use Inertia\LazyProp;
125125
use App\Services\InjectedDependency;
126-
use Webfox\InertiaDataProviders\DataProvider;
126+
use Foxbyte\InertiaDataProviders\DataProvider;
127127
128128
class DemoDataProvider extends DataProvider
129129
{
@@ -303,7 +303,7 @@ class DemoController extends Controller
303303
304304
## Attribute Name Formatting
305305
The attribute name format can be configured in the configuration file by setting the `attribute_name_formatter`.
306-
The package ships with three formatters under the namespace `\Webfox\InertiaDataProviders\AttributeNameFormatters` but you are free to create your own.
306+
The package ships with three formatters under the namespace `\Foxbyte\InertiaDataProviders\AttributeNameFormatters` but you are free to create your own.
307307
308308
### AsWritten
309309
This is the default formatter. The output attribute name will be the same as the input name.

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
{
2-
"name": "webfox/laravel-inertia-dataproviders",
2+
"name": "foxbytehq/laravel-inertia-dataproviders",
33
"description": "Data providers to encapsulate logic for Inertia views",
44
"keywords": [
5-
"webfox",
5+
"foxbytehq",
66
"laravel",
77
"inertia"
88
],
9-
"homepage": "https://github.com/webfox/laravel-inertia-dataproviders",
9+
"homepage": "https://github.com/foxbytehq/laravel-inertia-dataproviders",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": "Webfox Developments Ltd",
14-
"email": "[email protected].nz",
13+
"name": "Foxbyte Ltd",
14+
"email": "devops@foxbyte.nz",
1515
"role": "Developer"
1616
}
1717
],
18+
"replace": {
19+
"webfox/laravel-inertia-dataproviders": "*"
20+
},
1821
"suggest": {
1922
"inertiajs/inertia-laravel": "Needed for basic inertia functionality"
2023
},
@@ -38,12 +41,12 @@
3841
},
3942
"autoload": {
4043
"psr-4": {
41-
"Webfox\\InertiaDataProviders\\": "src"
44+
"Foxbyte\\InertiaDataProviders\\": "src"
4245
}
4346
},
4447
"autoload-dev": {
4548
"psr-4": {
46-
"Webfox\\InertiaDataProviders\\Tests\\": "tests"
49+
"Foxbyte\\InertiaDataProviders\\Tests\\": "tests"
4750
}
4851
},
4952
"scripts": {
@@ -61,7 +64,7 @@
6164
"extra": {
6265
"laravel": {
6366
"providers": [
64-
"Webfox\\InertiaDataProviders\\InertiaDataProvidersServiceProvider"
67+
"Foxbyte\\InertiaDataProviders\\InertiaDataProvidersServiceProvider"
6568
]
6669
}
6770
},

config/inertia-dataproviders.php

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

33
return [
4-
'attribute_name_formatter' => \Webfox\InertiaDataProviders\AttributeNameFormatters\AsWritten::class,
4+
'attribute_name_formatter' => \Foxbyte\InertiaDataProviders\AttributeNameFormatters\AsWritten::class,
55
];

ide.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
33
"codeGenerations": [
44
{
5-
"id": "webfox.create-inertia-data-provider",
5+
"id": "foxbyte.create-inertia-data-provider",
66
"name": "Create Inertia Data Provider",
77
"classSuffix": "DataProvider",
88
"files": [

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="Webfox Test Suite">
22+
<testsuite name="Foxbyte Test Suite">
2323
<directory>tests</directory>
2424
</testsuite>
2525
</testsuites>

src/AttributeNameFormatters/AsWritten.php

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

3-
namespace Webfox\InertiaDataProviders\AttributeNameFormatters;
3+
namespace Foxbyte\InertiaDataProviders\AttributeNameFormatters;
44

55
class AsWritten implements AttributeNameFormatter
66
{

src/AttributeNameFormatters/AttributeNameFormatter.php

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

3-
namespace Webfox\InertiaDataProviders\AttributeNameFormatters;
3+
namespace Foxbyte\InertiaDataProviders\AttributeNameFormatters;
44

55
interface AttributeNameFormatter
66
{

src/AttributeNameFormatters/CamelCase.php

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

3-
namespace Webfox\InertiaDataProviders\AttributeNameFormatters;
3+
namespace Foxbyte\InertiaDataProviders\AttributeNameFormatters;
44

55
use Illuminate\Support\Str;
66

src/AttributeNameFormatters/SnakeCase.php

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

3-
namespace Webfox\InertiaDataProviders\AttributeNameFormatters;
3+
namespace Foxbyte\InertiaDataProviders\AttributeNameFormatters;
44

55
use Illuminate\Support\Str;
66

0 commit comments

Comments
 (0)