Skip to content

Commit c51ee6f

Browse files
committed
refactor: changed package namespace from Doliveira to Danilowa
1 parent 8ce0a88 commit c51ee6f

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
2-
  <img src="https://img.shields.io/packagist/v/doliveira/laravel-api-response-builder" alt="Latest Version" />
3-
  <img src="https://img.shields.io/packagist/dt/doliveira/laravel-api-response-builder" alt="Total Downloads" />
2+
  <img src="https://img.shields.io/packagist/v/danilowa/laravel-api-response-builder" alt="Latest Version" />
3+
  <img src="https://img.shields.io/packagist/dt/danilowa/laravel-api-response-builder" alt="Total Downloads" />
44
</p>
55

66
<p align="center">
@@ -50,15 +50,15 @@ To integrate the Laravel API Response Builder into your Laravel project, follow
5050
Run the following command in your terminal:
5151

5252
```bash
53-
composer require doliveira/laravel-api-response-builder
53+
composer require danilowa/laravel-api-response-builder
5454
```
5555

5656
2. **Publish the Configuration (Optional):**
5757

5858
After installation, publish the configuration file:
5959

6060
```bash
61-
php artisan vendor:publish --provider="Doliveira\LaravelResponseBuilder\Providers\ResponseBuilderServiceProvider"
61+
php artisan vendor:publish --provider="Danilowa\LaravelResponseBuilder\Providers\ResponseBuilderServiceProvider"
6262
```
6363

6464
This will create a configuration file at `config/responsebuilder.php`, where you can customize the package settings.
@@ -85,7 +85,7 @@ This will create a `resources/lang/vendor/responsebuilder` directory where you c
8585

8686
2. **Use Existing Translation Files:**
8787

88-
If you do not need custom translations, the package will automatically use the default language files from the `vendor/doliveira/laravel-api-response-builder/resources/lang` directory.
88+
If you do not need custom translations, the package will automatically use the default language files from the `vendor/danilowa/laravel-api-response-builder/resources/lang` directory.
8989

9090
## 🧰 Technologies
9191

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "doliveira/laravel-api-response-builder",
2+
"name": "danilowa/laravel-api-response-builder",
33
"version": "1.0.8",
44
"description": "A Laravel package designed to simplify the creation of structured and formatted API responses (JSON, XML) with custom status codes, messages, and data. XML support is currently under construction.",
55
"type": "library",
66
"license": "MIT",
77
"minimum-stability": "dev",
88
"homepage": "https://github.com/DaniloWA/laravel-api-response-builder",
99
"keywords": [
10-
"doliveira",
10+
"DaniloWA",
1111
"danilo",
1212
"oliveira",
1313
"laravel-api-response-builder",
@@ -30,26 +30,26 @@
3030
}
3131
],
3232
"require": {
33-
"php": "^7.3|^8.0|^8.1|^8.2",
33+
"php": "^8.1|^8.2",
3434
"laravel/framework": "^8.0|^9.0|^10.0|^11.0"
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"Doliveira\\LaravelResponseBuilder\\": "src/",
39-
"Doliveira\\LaravelResponseBuilder\\Providers\\": "src/providers/",
40-
"Doliveira\\LaravelResponseBuilder\\Resources\\": "src/resources",
41-
"Doliveira\\LaravelResponseBuilder\\Config\\": "src/config"
38+
"Danilowa\\LaravelResponseBuilder\\": "src/",
39+
"Danilowa\\LaravelResponseBuilder\\Providers\\": "src/providers/",
40+
"Danilowa\\LaravelResponseBuilder\\Resources\\": "src/resources",
41+
"Danilowa\\LaravelResponseBuilder\\Config\\": "src/config"
4242
}
4343
},
4444
"autoload-dev": {
4545
"psr-4": {
46-
"Doliveira\\LaravelResponseBuilder\\Tests\\": "tests"
46+
"Danilowa\\LaravelResponseBuilder\\Tests\\": "tests"
4747
}
4848
},
4949
"extra": {
5050
"laravel": {
5151
"providers": [
52-
"Doliveira\\LaravelResponseBuilder\\Providers\\ResponseBuilderServiceProvider"
52+
"Danilowa\\LaravelResponseBuilder\\Providers\\ResponseBuilderServiceProvider"
5353
]
5454
}
5555
},

src/BaseResponse.php

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

3-
namespace Doliveira\LaravelResponseBuilder;
3+
namespace Danilowa\LaravelResponseBuilder;
44

55
use Illuminate\Support\Facades\Lang;
66
use Illuminate\Support\Facades\Config;

src/JsonResponse.php

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

3-
namespace Doliveira\LaravelResponseBuilder;
3+
namespace Danilowa\LaravelResponseBuilder;
44

55
use Illuminate\Http\JsonResponse as IlluminateJsonResponse;
66

src/LogResponse.php

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

3-
namespace Doliveira\LaravelResponseBuilder;
3+
namespace Danilowa\LaravelResponseBuilder;
44

55
use Illuminate\Http\JsonResponse as IlluminateJsonResponse;
66
use Illuminate\Support\Facades\Config;

src/providers/ResponseBuilderServiceProvider.php

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

3-
namespace Doliveira\LaravelResponseBuilder\Providers;
3+
namespace Danilowa\LaravelResponseBuilder\Providers;
44

55
use Illuminate\Support\ServiceProvider;
66
use Illuminate\Support\Facades\Config;

wiki/json-responseWip.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Generates a successful JSON response with a customizable message and data.
4949
<summary>Click to view code</summary>
5050

5151
```php
52-
use Doliveira\LaravelResponseBuilder\JsonResponse;
52+
use Danilowa\LaravelResponseBuilder\JsonResponse;
5353

5454
return JsonResponse::success($data, 'Operation successful.');
5555
```
@@ -67,7 +67,7 @@ Generates a success response with user details.
6767
<summary>Click to view code</summary>
6868

6969
```php
70-
use Doliveira\LaravelResponseBuilder\JsonResponse;
70+
use Danilowa\LaravelResponseBuilder\JsonResponse;
7171

7272
return JsonResponse::success($userData, 'User details retrieved successfully.');
7373
```
@@ -83,7 +83,7 @@ Generates a success response with product details and a custom status code.
8383
<summary>Click to view code</summary>
8484

8585
```php
86-
use Doliveira\LaravelResponseBuilder\JsonResponse;
86+
use Danilowa\LaravelResponseBuilder\JsonResponse;
8787

8888
return JsonResponse::success($productData, 'Product details retrieved successfully.', true, 'product');
8989
```
@@ -112,7 +112,7 @@ Generates an error JSON response with a customizable status code, message, and d
112112
<summary>Click to view code</summary>
113113

114114
```php
115-
use Doliveira\LaravelResponseBuilder\JsonResponse;
115+
use Danilowa\LaravelResponseBuilder\JsonResponse;
116116

117117
return JsonResponse::error(400, 'Bad request.', $data);
118118
```
@@ -130,7 +130,7 @@ Generates an error response for a resource not found.
130130
<summary>Click to view code</summary>
131131

132132
```php
133-
use Doliveira\LaravelResponseBuilder\JsonResponse;
133+
use Danilowa\LaravelResponseBuilder\JsonResponse;
134134

135135
return JsonResponse::error(404, 'Resource not found.');
136136
```
@@ -160,7 +160,7 @@ Generates a successful JSON response with additional metadata.
160160
<summary>Click to view code</summary>
161161

162162
```php
163-
use Doliveira\LaravelResponseBuilder\JsonResponse;
163+
use Danilowa\LaravelResponseBuilder\JsonResponse;
164164

165165
return JsonResponse::successWithMeta($data, $meta, 'Operation successful.');
166166
```
@@ -178,7 +178,7 @@ Generates a success response with user details and metadata about the request.
178178
<summary>Click to view code</summary>
179179

180180
```php
181-
use Doliveira\LaravelResponseBuilder\JsonResponse;
181+
use Danilowa\LaravelResponseBuilder\JsonResponse;
182182

183183
return JsonResponse::successWithMeta($userData, ['request_time' => now()], 'User details retrieved successfully.');
184184
```
@@ -208,7 +208,7 @@ Generates an error JSON response with suggested actions to resolve the issue.
208208
<summary>Click to view code</summary>
209209

210210
```php
211-
use Doliveira\LaravelResponseBuilder\JsonResponse;
211+
use Danilowa\LaravelResponseBuilder\JsonResponse;
212212

213213
return JsonResponse::errorWithSuggestions(400, 'Bad request.', $data, ['Check request parameters']);
214214
```
@@ -226,7 +226,7 @@ Generates an error response with suggestions to check request parameters.
226226
<summary>Click to view code</summary>
227227

228228
```php
229-
use Doliveira\LaravelResponseBuilder\JsonResponse;
229+
use Danilowa\LaravelResponseBuilder\JsonResponse;
230230

231231
return JsonResponse::errorWithSuggestions(400, 'Bad request.', null, ['Ensure all required parameters are included.']);
232232
```
@@ -256,7 +256,7 @@ Generates a successful JSON response with pagination information.
256256
<summary>Click to view code</summary>
257257

258258
```php
259-
use Doliveira\LaravelResponseBuilder\JsonResponse;
259+
use Danilowa\LaravelResponseBuilder\JsonResponse;
260260

261261
return JsonResponse::successWithPagination($data, ['page' => 1, 'total_pages' => 10], 'Data retrieved successfully.');
262262
```
@@ -274,7 +274,7 @@ Generates a success response with user list and pagination information.
274274
<summary>Click to view code</summary>
275275

276276
```php
277-
use Doliveira\LaravelResponseBuilder\JsonResponse;
277+
use Danilowa\LaravelResponseBuilder\JsonResponse;
278278

279279
return JsonResponse::successWithPagination($userData, ['page' => 1, 'total_pages' => 5], 'Users retrieved successfully.');
280280
```
@@ -306,7 +306,7 @@ code (default: 200).
306306
<summary>Click to view code</summary>
307307

308308
```php
309-
use Doliveira\LaravelResponseBuilder\JsonResponse;
309+
use Danilowa\LaravelResponseBuilder\JsonResponse;
310310

311311
return JsonResponse::successWithTrace($data, ['trace' => debug_backtrace()], 'Operation successful.');
312312
```
@@ -324,7 +324,7 @@ Generates a success response with trace information for debugging.
324324
<summary>Click to view code</summary>
325325

326326
```php
327-
use Doliveira\LaravelResponseBuilder\JsonResponse;
327+
use Danilowa\LaravelResponseBuilder\JsonResponse;
328328

329329
return JsonResponse::successWithTrace($userData, ['trace' => debug_backtrace()], 'User details retrieved successfully.');
330330
```

0 commit comments

Comments
 (0)