Skip to content
Open
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
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Passgenerator

Passgenerator is a Laravel7+ package that allows you to easily create passes compatible with Apple Wallet (former Passbook).
Passgenerator is a Laravel 7–12 package that allows you to easily create passes compatible with Apple Wallet (former Passbook).

# 👉 Table of Contents 👈
* [👮 Requirements](#-requirements)
Expand All @@ -11,7 +11,7 @@ Passgenerator is a Laravel7+ package that allows you to easily create passes com

## 👮 Requirements

Only things needed are Laravel 7+ and to have the [PHP Zip extension](http://php.net/manual/en/book.zip.php) installed and enabled.
Only things needed are Laravel 7 or newer (including Laravel 12) and to have the [PHP Zip extension](http://php.net/manual/en/book.zip.php) installed and enabled.

## 💾 Installation
The best and easiest way to install the package is using the [Composer](https://getcomposer.org/) package manager. To do so, run this command in your project root:
Expand All @@ -20,14 +20,11 @@ The best and easiest way to install the package is using the [Composer](https://
composer require thenextweb/passgenerator
```

Then, add the `Thenextweb\PassGeneratorServiceProvider` provider to the providers array in `config/app.php`:
The package registers itself automatically via Laravel package discovery.

```php
'providers' => [
// ...
Thenextweb\PassGeneratorServiceProvider::class,
],
```
If discovery is disabled, register the provider manually:
- **Laravel 11/12**: add `Thenextweb\PassGeneratorServiceProvider::class` to `bootstrap/providers.php`
- **Laravel 7–10**: add it to the `providers` array in `config/app.php`

That's it!

Expand Down Expand Up @@ -62,7 +59,7 @@ In case there is a reason the config file must be modified (conflicting env keys

```sh
// file will be at config/passgenerator.php
php artisan vendor:publish --provider="Thenextweb\PassGeneratorServiceProvider"
php artisan vendor:publish --tag=passgenerator-config
```

## 🚀 Usage
Expand Down
25 changes: 17 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,30 @@
}
],
"require": {
"php": "^8.2",
"ext-openssl": "*",
"ext-zip": "*",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0|^11.0",
"thecodingmachine/safe": "^2.1"
"illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/validation": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"phpstan/phpstan": "^1.6",
"phpunit/phpunit": "^9.3|^10.0",
"rector/rector": "^0.12|^0.15",
"thecodingmachine/phpstan-safe-rule": "^1.2"
"phpunit/phpunit": "^9.3|^10.0|^11.5",
"rector/rector": "^0.12|^0.15"
},
"autoload": {
"psr-4": {
"Thenextweb\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
Expand All @@ -47,5 +53,8 @@
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"scripts": {
"test": "@php vendor/bin/phpunit"
}
}
}
Loading