Download the PHP package visiaquantum/laravel-fattureincloud-php-sdk without Composer

On this page you can find all versions of the php package visiaquantum/laravel-fattureincloud-php-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 laravel-fattureincloud-php-sdk

Laravel Fatture in Cloud PHP SDK

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A Laravel package that provides a clean, Laravel-native wrapper around the official Fatture in Cloud PHP SDK. This package abstracts the complexity of the base SDK and offers a simplified, Laravel-integrated developer experience for interacting with the Fatture in Cloud API.

The package follows Laravel ecosystem conventions with a clean, simplified architecture that provides OAuth2 authentication flows, token management, and service abstraction for seamless API integration.

Features

Requirements

Installation

You can install the package via Composer:

Publish the configuration file:

Configuration

Environment Variables

Add these variables to your .env file:

Configuration File

The published configuration file (config/fatture-in-cloud.php) includes comprehensive OAuth2 settings:

OAuth2 Callback Route

The package automatically registers the OAuth2 callback route at /fatture-in-cloud/callback (named fatture-in-cloud.callback) using a single action invokable controller. This route:

The route is registered as: Route::get('/fatture-in-cloud/callback', OAuth2CallbackController::class)

Usage

Facade Usage

Dependency Injection

Available API Services

The package provides access to 13+ Fatture in Cloud API services through the factory pattern:

Service Key API Class Purpose
clients ClientsApi Customer/client management
companies CompaniesApi Company information & settings
info InfoApi System information & metadata
issuedDocuments IssuedDocumentsApi Invoices, quotes, orders, etc.
products ProductsApi Product catalog management
receipts ReceiptsApi Receipt management
receivedDocuments ReceivedDocumentsApi Received invoices/documents
suppliers SuppliersApi Supplier management
taxes TaxesApi Tax rates & settings
user UserApi User account information
settings SettingsApi Account settings & preferences
archive ArchiveApi Document archiving
cashbook CashbookApi Cash flow & transactions

OAuth2 Authentication Flow

1. Generate Authorization URL

2. Handle Callback (Automatic Route)

The package automatically handles callbacks at /fatture-in-cloud/callback. You can customize the handling by creating your own controller:

3. Using API Services

Token Management

OAuth2 Scopes

The package supports all Fatture in Cloud OAuth2 scopes. Some common scopes include:

Manual Authentication

If you prefer to use a manually generated access token instead of OAuth2:

When an access token is configured, OAuth2 settings are ignored and the SDK will use the token directly. This is useful for:

Architecture

The package follows clean architecture principles with dependency injection and contract-based design:

Key Architectural Features

Development Commands

Testing

Run the full test suite using Pest:

Run tests directly:

Run tests with coverage report:

Run tests in CI mode:

Code Quality

Run PHPStan static analysis:

Run PHPStan directly:

Format code using Laravel Pint:

Format code directly:

Package Development

Discover package (runs automatically after autoload dump):

Security Features

Publishing Configuration

When ready to publish package assets:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (composer test)
  5. Run code quality checks (composer analyse && composer format)
  6. Commit your changes (git commit -m 'Add some amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

Security Vulnerabilities

If you discover a security vulnerability within this package, please send an email to the maintainers. All security vulnerabilities will be promptly addressed.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-fattureincloud-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0
fattureincloud/fattureincloud-php-sdk Version ~2.1.3
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 visiaquantum/laravel-fattureincloud-php-sdk contains the following files

Loading the files please wait ....