Download the PHP package square-bit/invoicexpress-for-laravel without Composer
On this page you can find all versions of the php package square-bit/invoicexpress-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download square-bit/invoicexpress-for-laravel
More information about square-bit/invoicexpress-for-laravel
Files in square-bit/invoicexpress-for-laravel
Package invoicexpress-for-laravel
Short Description Laravel package to integrate invoicexpress
License MIT
Homepage https://github.com/square-bit/invoicexpress-for-laravel
Informations about the package invoicexpress-for-laravel
InvoiceXpress integration for Laravel
Integrate your Laravel application with InvoiceXpress' API
Concept
This package can be used on 2 different layers:
- via the provided Models.
- interacting directly with the API endpoint.
Using the former allows you to transparently create, update and delete entities both in your application's database and in InvoiceXpress.
Installation
You can install the package via composer:
Optionally, you can publish and run the migrations:
You can publish the config file with:
This is the contents of the published config file:
IX_ACCOUNT_NAME
is your InvoiceXpress account name (the XXX in https://XXX.app.invoicexpress.com).
IX_API_KEY
is the API key you can get from your InvoiceXpress account settings page.
persist
defines whether to store the entities in your database, when using the "Model" layer. Default is false
.
If you set it to true
, make sure you ran the migrations.
Usage
Option 1 - Via the model layer
With this approach, the package handles both local and remote changes to the entities.
This however is not enabled by default. To enable it:
- publish and run the migrations (see Installation)
- set
persist => true
in the config file (see Installation)
You can get a specific Item and update it:
Or you can create one:
Or even delete it:
Invoice lifecycle:
Option 2 - Directly using the endpoints
With this approach, only remote changes are handled. If you want, you'll have to manage local changes (in your database) manually.
You can get a specific Item and update it:
Or you can create one:
Or even delete it:
Invoice lifecycle:
You can mix both options, if you want
Available entities
InvoiceXpress entity | Model class | Endpoint class |
---|---|---|
Items | IxItem | ItemsEndpoint |
Taxes | IxTax | TaxesEndpoint |
Clients | IxIClient | ClientsEndpoint |
Invoices (Invoice) | IxInvoice | InvoicesEndpoint |
Invoices (SimplifiedInvoice) | IxSimplifiedInvoice | InvoicesEndpoint |
Invoices (InvoiceReceipt) | IxInvoiceReceipt | InvoicesEndpoint |
Invoices (Receipt) | IxReceipt | InvoicesEndpoint |
Invoices (CreditNote) | IxCreditNote | InvoicesEndpoint |
Invoices (DebitNote) | IxDebitNote | InvoicesEndpoint |
Invoices (CashInvoice) | IxCashInvoice | InvoicesEndpoint |
Invoices (VatMossInvoice) | IxVatMossInvoice | InvoicesEndpoint |
Invoices (VatMossReceipt) | IxVatMossReceipt | InvoicesEndpoint |
Invoices (VatMossCreditNote) | IxVatMossCreditNote | InvoicesEndpoint |
Estimates (Quote) | IxQuote | EstimatesEndpoint |
Estimates (Proforma) | IxProforma | EstimatesEndpoint |
Estimates (FeesNote) | IxFeesNote | EstimatesEndpoint |
Guides (Shipping) | IxShipping | GuidesEndpoint |
Guides (Transport) | IxTransport | GuidesEndpoint |
Guides (Devolution) | IxDevolution | GuidesEndpoint |
Sequences | IxSequence | SequencesEndpoint |
SAF-T | - | SaftEndpoint |
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Squarebit, Lda
- All Contributors
- Spatie's Laravel Data
License
The MIT License (MIT). Please see License File for more information.
All versions of invoicexpress-for-laravel with dependencies
illuminate/contracts Version ^10.0
spatie/laravel-data Version ^3.5
spatie/laravel-package-tools Version ^1.14.0