Download the PHP package willemo/laravel-twinfield without Composer

On this page you can find all versions of the php package willemo/laravel-twinfield. 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-twinfield

Laravel Twinfield

Twinfield service provider for Laravel 8, adding the functionality of the php-twinfield/twinfield API client.

Warning: this project is archived

This means that there will be no more updates or security fixes from Dependabot.

Requirements

This service provider is written for Laravel 8 and up and requires PHP 8.1 to run.

Installation

You can install this package with composer:

The package will be automatically discovered by your Laravel installation, so you don't need to add the service provider and facade to your app config file.

Need support for lower PHP or Laravel versions?

In that case you can install the ^1.0 version of this package, which is compatible with Laravel 5.5+ and PHP 7.2+.

Upgrading from version 0 to version 1

Between version 0.X.X and 1.X.X the file structure has been modified. Make sure all class references are correct after upgrading.

Configuration

Firstly you'll have to publish the config file:

Then you can configure the Twinfield API client in config/twinfield.php. The best way to configure your Twinfield API is by using environment variables.

Connect to the API with your credentials

You can either choose to use your credentials to connect to the Twinfield API:

Connect to the API using OAuth

Or you can use OAuth to connect to the Twinfield API:

If you wish to use the autoRedirect option of the PhpTwinfield API client, you can enable it in the config/twinfield.php file by setting 'autoRedirect' => true,.

Usage

You can use the Twinfield facade to get an API connector:

For usage of the API connectors and available connectors, check the PhpTwinfield docs.


All versions of laravel-twinfield with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^8.0|^9.0
php-twinfield/twinfield Version ^2.0
symfony/options-resolver Version ^4.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 willemo/laravel-twinfield contains the following files

Loading the files please wait ....