Download the PHP package konekt/factureaza-sdk without Composer

On this page you can find all versions of the php package konekt/factureaza-sdk. 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 factureaza-sdk

PHP 8.1 SDK for factureaza.ro API

Tests Packagist version Packagist downloads StyleCI

This package provides a PHP SDK for interacting with the factureaza.ro GraphQL API.

Installation

The minimum requirement of this package is PHP 8.1.

To install this library in your application, use composer:

Usage

Live or Sandbox

To connect to the live system, use the connect method and pass your api key:

To connect to the sandbox system, use the sandbox method:

Time Zone

The factureaza.ro API returns dates in the Romanian time zone (Europe/Bucharest). This SDK returns dates in that timezone by default.

If you want dates to be returned in UTC, call the useUTCTime() method:

Create an Invoice

Document States

Invoices and other documents can have 4 states: draft, open, closed, cancelled.

When creating an Invoice, it will have the open state by default.

If you want to create an invoice with a different initial state, use one of the following methods on the CreateInvoice class:

or:

Retrieve Invoice PDF

The PDF of an Invoice can be retrieved in base64 encoded format:

Retrieve a Single Invoice

Unique invoices can be retrieved by id:

Find Clients

You can retrieve a client either by its Factureaza ID, or by tax number (cod fiscal).

Find a Client by Factureaza ID

Find a Client By Other Fields

By Tax Number:

By E-mail address:

By name:

Create a Client

Factureaza identifies clients based on their taxNo (uid in Factureaza API) field, which represents either the tax number (CIF/CUI) of a company or the personal identification number (CNP) of a natural person.

If you try to create a client with a taxNo that already exists, a ClientExistsException is thrown.


All versions of factureaza-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
konekt/enum Version ^3.0|^4.0
illuminate/http Version ^8.22.1|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.4
nesbot/carbon Version ^2.53.1
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 konekt/factureaza-sdk contains the following files

Loading the files please wait ....