Download the PHP package szymsza/laravel-fakturoid without Composer

On this page you can find all versions of the php package szymsza/laravel-fakturoid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-fakturoid

Laravel Fakturoid

Simple wrapper for official php package https://github.com/fakturoid/fakturoid-php

Docs

Installation

Step 1: Install package

Add the package in your composer.json by executing the command.

This will both update composer.json and install the package into the vendor/ directory.

Step 2: Configuration

First initialise the config file by running this command:

With this command, initialize the configuration and modify the created file, located under config/fakturoid.php.

Configuration

Examples

Create Subject, Create Invoice, Send Invoice (API v3-style)

Create Subject, Create Invoice, Send Invoice (old API-style)

Upgrade Guide

If you used the older version of this package communicating with Fakturoid API v2 (pre-March 2024), an update is required before the old API version gets turned off on 31st March 2025.

Standard upgrade guide:

  1. Update the package to the latest version using Composer.
  2. Update your configuration in config/fakturoid.php (see Installation: Step 2).
  3. Edit your configuration in .env:
    • Remove FAKTUROID_EMAIL and FAKTUROID_API_KEY
    • Add FAKTUROID_API_ID and FAKTUROID_API_SECRET with credentials found in your Fakturoid user account settings

If you only used basic Fakturoid functionality, all might work as usual at this point. If not, the issue might be of two types:

Changes of the underlying API

Arguments and return types of Fakturoid API v3 calls are not always the same as in v2 - e.g., proforma boolean has been replaced by a document_type attribute when fetching invoices.

To see if you need to provide different arguments of should expect different return values, please consult the official Fakturoid API changelog.

Changes of the underlying PHP library

The PHP library this package provides a facade to has changed significantly. Although this wrapper tries to cover up most of these changes to make your code backwards compatible, some less commonly used methods or generally edge cases might case a problem. This can be usually recognized by a BadMethodCallException: Method 'XXX' does not exist on Fakturoid instance. or a similar exception thrown by the wrapper or the PHP library.

To solve this issue, please consult the PHP library documentation to learn how to call your functionality in the new API format (viewing the README diff might come in handy). E.g., to create a subject, instead of calling

you would now use

as can be seen in the README diff on line 27, resp. 172.

If you do run into such unhandled comatibility problem, please consider submitting a pull request to the V2Compatibility trait of this package, or at least opening an issue in this repository.

License

Copyright (c) 2019 - 2020 webiz eu s.r.o MIT Licensed.


All versions of laravel-fakturoid with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
fakturoid/fakturoid-php Version ^2.0
guzzlehttp/guzzle Version ^7.8
illuminate/support Version ^9.0|^10.0|^11.0
laravel/framework Version ^9.0|^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package szymsza/laravel-fakturoid contains the following files

Loading the files please wait ....