Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change namspace #12

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

25 changes: 2 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/sawirricardo/laravel-api2pdf/Check%20&%20fix%20styling?label=code%20style)](https://github.com/sawirricardo/laravel-api2pdf/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/sawirricardo/laravel-api2pdf.svg?style=flat-square)](https://packagist.org/packages/sawirricardo/laravel-api2pdf)

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

## Support us

[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-api2pdf.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-api2pdf)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

## Installation

Expand Down Expand Up @@ -53,22 +44,10 @@ echo $result->getFile();
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

## Security Vulnerabilities

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

## Credits

- [sawirricardo](https://github.com/sawirricardo)
- [All Contributors](../../contributors)
- Forked from [sawirricardo](https://github.com/sawirricardo/laravel-api2pdf)


## License

Expand Down
45 changes: 21 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,54 @@
{
"name": "sawirricardo/laravel-api2pdf",
"description": "This is my package laravel-api2pdf",
"name": "blackpig/laravel-api2pdf",
"description": "A simple Laravel wrapper around api2pdf",
"keywords": [
"sawirricardo",
"Blackpig",
"laravel",
"laravel-api2pdf"
],
"homepage": "https://github.com/sawirricardo/laravel-api2pdf",
"homepage": "https://github.com/blackpig/laravel-api2pdf",
"license": "MIT",
"authors": [
{
"name": "sawirricardo",
"email": "[email protected]",
"name": "Blackpig",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"api2pdf/api2pdf.php": "^2.0",
"illuminate/contracts": "^9.0",
"spatie/laravel-package-tools": "^1.8.0"
"illuminate/contracts": "^10.0",
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
"psr-4": {
"Sawirricardo\\Api2pdf\\Laravel\\": "src"
"Blackpig\\Laravel-Api2Pdf\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Sawirricardo\\Api2pdf\\Laravel\\Tests\\": "tests"
"Blackpig\\Laravel-Api2Pdf\\Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
Expand All @@ -63,10 +60,10 @@
"extra": {
"laravel": {
"providers": [
"Sawirricardo\\Api2pdf\\Laravel\\Api2pdfServiceProvider"
"Blackpig\\Laravel-Api2Pdf\\Api2pdfServiceProvider"
],
"aliases": {
"Api2pdf": "Sawirricardo\\Api2pdf\\Laravel\\Facades\\Api2pdf"
"Api2pdf": "Blackpig\\Api2pdf\\Laravel\\Facades\\Api2pdf"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion config/api2pdf.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

// config for Sawirricardo/Api2pdf
// config for Blackpig/Api2pdf
return [
'api_key' => env('API2PDF_API_KEY'),
];
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
verbose="true"
>
<testsuites>
<testsuite name="Sawirricardo Test Suite">
<testsuite name="Blackpig Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion src/Api2pdf.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sawirricardo\Api2pdf\Laravel;
namespace Blackpig\Api2pdf\Laravel;

use Api2Pdf\Api2Pdf as Client;

Expand Down
2 changes: 1 addition & 1 deletion src/Api2pdfServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sawirricardo\Api2pdf\Laravel;
namespace Blackpig\Api2pdf\Laravel;

use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
Expand Down
4 changes: 2 additions & 2 deletions src/Facades/Api2pdf.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Sawirricardo\Api2pdf\Laravel\Facades;
namespace Blackpig\Api2pdf\Laravel\Facades;

use Illuminate\Support\Facades\Facade;

/**
* @method static \Api2Pdf\Api2Pdf client()
* @see \Sawirricardo\Api2pdf\Laravel\Api2pdf
* @see \Blackpig\Api2pdf\Laravel\Api2pdf
*/
class Api2pdf extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Sawirricardo\Api2pdf\Laravel\Api2pdf as Client;
use Sawirricardo\Api2pdf\Laravel\Facades\Api2pdf;
use Blackpig\Api2pdf\Laravel\Api2pdf as Client;
use Blackpig\Api2pdf\Laravel\Facades\Api2pdf;

if (! function_exists('api2pdf')) {
function api2pdf(): Client
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

use Sawirricardo\Api2pdf\Laravel\Tests\TestCase;
use Blackpig\Api2pdf\Laravel\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Sawirricardo\Api2pdf\Laravel\Tests;
namespace Blackpig\Api2pdf\Laravel\Tests;

use Orchestra\Testbench\TestCase as Orchestra;
use Sawirricardo\Api2pdf\Laravel\Api2pdfServiceProvider;
use Blackpig\Api2pdf\Laravel\Api2pdfServiceProvider;

class TestCase extends Orchestra
{
Expand Down