Transform into Laravel package with service provider and facade#40
Open
Transform into Laravel package with service provider and facade#40
Conversation
BREAKING CHANGE: This package now requires Laravel 10+ - Add BexioServiceProvider for Laravel auto-discovery - Add config/bexio.php configuration file - Add Bexio Facade for convenient access - Remove spatie-data-standalone dependency - Remove check-dependency.php script - Remove illuminate/container explicit dependency (Laravel provides it) - Update composer.json with Laravel package auto-discovery - Add orchestra/testbench and pest-plugin-laravel for testing - Update tests to use Testbench for Laravel integration testing - Update README with Laravel installation instructions - Lower PHP requirement to 8.2+ for broader compatibility - Bump version to 4.0.0 https://claude.ai/code/session_01Tuxg8ZEJFKq97FRu5by7pS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR transforms the Bexio API client from a framework-agnostic PHP library into a full-featured Laravel package with service provider integration, configuration management, and a facade for convenient access.
Key Changes
BexioServiceProviderfor automatic service registration and configuration publishingconfig/bexio.phpwith support for both Personal Access Token and OAuth2 authentication methodsBexiofacade for convenient access to the client throughout Laravel applications.env.examplewith all required and optional environment variablesilluminate/supportas a direct dependencygigerit/spatie-laravel-data-standalone(no longer needed with Laravel)orchestra/testbenchfor Laravel testing supportOrchestra\Testbenchfor Laravel testingServiceProviderTestto verify service provider functionalityTestCaseto extendOrchestra\Testbench\TestCasecheck-dependency.phphelper script (no longer needed)Notable Implementation Details
php artisan vendor:publish --tag=bexio-configBreaking Changes
https://claude.ai/code/session_01Tuxg8ZEJFKq97FRu5by7pS