How lostcause/smartbill works
This is a small Laravel integration library: an application configures SmartBill credentials and invokes the client, which sends requests to SmartBill’s cloud API. The client also exposes document creation and management, payment/status operations, and account/product lookups. The README demonstrates invoice creation; sampled client excerpts show the shared HTTP request mechanism and several API operations, but do not expose every method.
Main entry points: SmartBillCloudRestClient.php REST client · SmartBill.php SmartBill wrapper · SmartBillServiceProvider.php Service provider · SmartBillFacade.php Facade
Components 10
Laravel integration
- Service provider
src/SmartBillServiceProvider.php - Credentials and settings
config/smartbill.php - Facade
src/SmartBillFacade.php
SmartBill client
- SmartBill wrapper
src/SmartBill.php - REST client
src/SmartBillCloudRestClient.php - Document operations
src/SmartBillCloudRestClient.php - Payment and status
src/SmartBillCloudRestClient.php - Account and stock lookups
src/SmartBillCloudRestClient.php
SmartBill API
- SmartBill cloud API
Other components
- Laravel application
Connections 14
- Laravel application → Facade: invokes
README.md - Service provider → Credentials and settings: merges config
src/SmartBillServiceProvider.php - Service provider → SmartBill wrapper: registers singleton
src/SmartBillServiceProvider.php - SmartBill wrapper → Credentials and settings: reads credentials
src/SmartBill.php - SmartBill wrapper → REST client: extends
src/SmartBill.php - Facade → Service provider: resolves service
- Laravel application → SmartBill wrapper: creates invoice
README.md - Document operations → REST client: uses request helper
src/SmartBillCloudRestClient.php - Payment and status → REST client: uses request helper
src/SmartBillCloudRestClient.php - Account and stock lookups → REST client: uses request helper
src/SmartBillCloudRestClient.php - REST client → SmartBill cloud API: sends HTTP requests
src/SmartBillCloudRestClient.php - Document operations → SmartBill cloud API: creates and manages documents
src/SmartBillCloudRestClient.php - Payment and status → SmartBill cloud API: manages payments and status
src/SmartBillCloudRestClient.php - Account and stock lookups → SmartBill cloud API: queries account data
src/SmartBillCloudRestClient.php