Download the PHP package aybarsm/laravel-pandle without Composer

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

Laravel Pandle

A highly customizable Laravel service provider package for the Pandle (pandle.com) bookkeeping platform API.

Installation

You can install the package via composer:

Configuration

Publish the configuration file:

Add the following environment variables to your .env file:

Usage

Basic Usage

Architecture & Design

Dependency Injection

This package implements a clean dependency injection pattern with no circular dependencies. All concrete implementations are referenced through their corresponding interfaces (abstracts):

This architectural decision provides several key benefits:

  1. Performance: No circular dependencies means faster instantiation and reduced memory usage
  2. Testability: Easy to mock dependencies for unit testing
  3. Maintainability: Clear separation of concerns and dependencies
  4. Flexibility: Simple to replace any component without affecting others
  5. Reliability: Prevents complex dependency chains that can lead to runtime issues

Customisation

The concretes in this package are not extensible. However, the package is designed to be highly customisable. All core components can be replaced with your own implementations by binding them before the PandleServiceProvider registers its defaults.

Available Contracts for Customisation

  1. AccessTokenContract

    • Default Abstract: Aybarsm\Laravel\Pandle\Contracts\AccessTokenContract::class
    • Default Concrete: Aybarsm\Laravel\Pandle\AccessToken::class
    • Handles access token management
  2. HandlerContract

    • Default Abstract: Aybarsm\Laravel\Pandle\Contracts\HandlerContract::class
    • Default Concrete: Aybarsm\Laravel\Pandle\Handler::class
    • Manages HTTP requests and response handling
    • Singleton by default for consistent request handling
  3. CompanyContract

    • Default Abstract: Aybarsm\Laravel\Pandle\Contracts\CompanyContract::class
    • Default Concrete: Aybarsm\Laravel\Pandle\Company::class
    • Handles company-specific operations
  4. ClientContract
    • Default Abstract: Aybarsm\Laravel\Pandle\Contracts\ClientContract::class
    • Default Concrete: Aybarsm\Laravel\Pandle\Client::class
    • Main client interface for API interactions
    • Singleton by default for connection pooling

Example: Custom Handler Concrete Implementation

Here's an example of implementing a custom handler with logging capabilities: You can customize the implementations in your AppServiceProvider's register method:

Error Handling

The package throws PandleException for API-related errors. You can catch these exceptions to handle errors gracefully:

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of laravel-pandle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^11.37.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 aybarsm/laravel-pandle contains the following files

Loading the files please wait ....