Add PHPStan, switch to PHPUnit, update for API SDK resources#7
Merged
sandervanhooft merged 10 commits intomainfrom Feb 27, 2026
Merged
Add PHPStan, switch to PHPUnit, update for API SDK resources#7sandervanhooft merged 10 commits intomainfrom
sandervanhooft merged 10 commits intomainfrom
Conversation
added 10 commits
February 27, 2026 11:13
- Remove baseline (all 87 errors fixed) - Add Vatly\Laravel\Contracts\BillableInterface (wraps Fluent) - Add Laravel event wrappers (SubscriptionStarted, etc.) - Update docs to use Laravel namespace only - Add proper type hints throughout - Users no longer need to import Vatly\Fluent namespace
- ManagesCustomer now returns Customer instead of Fluent response DTOs - Subscription model uses correct API SDK property names (href, subscriptionPlanId, trialUntil) - Updated tests to mock API SDK resources - User fixture updated for BillableInterface::save() return type
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.
Breaking Changes⚠️
Namespace Migration
Import contracts from Laravel namespace (recommended) or Fluent namespace:
Interface Changes (inherited from vatly-fluent-php)
BillableInterface::getKey()return type:string|int→mixedBillableInterface::save()return type:void→mixedBillableInterface::getMorphClass()removedNew Laravel Wrapper Interfaces
Vatly\Laravel\Contracts\BillableInterfaceextends Fluent interfaceVatly\LaravelnamespaceOther Changes
Migration Guide
usestatements to new namespaceBillableInterfacedirectly, update method signaturesvatly/vatly-fluent-phpfrom same releasePart of Larafast dev sprint.