Download the PHP package sarfrazrizwan/laravel-webling without Composer

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

Laravel Webling Wrapper Package

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Laravel wrapper for the Webling REST API (usystems/webling-api-php). It features a three-layer architecture (raw pass-through, ergonomic resource models, and read-only singletons), credentials validation, automated caching, and robust API key security redacting.

Installation

You can install the package via composer:

You can publish the configuration file using:

Configuration

Set the environment variables in your .env file:


Usage

You can access the package using dependency injection or through the Webling facade:

Layer 1: Raw HTTP Pass-through (Escape Hatch)

Thin methods returning decoded arrays and throwing WeblingApiException on HTTP status codes >= 400. Useful for endpoints not modeled by the resource layer.

Layer 2: Ergonomic Resource Groups

Named accessors mapping to Webling object types. Resource instances are cached in memory for the duration of the request.

Specialized Subclass Endpoints

Note: All binary sub-resources return raw bytes (strings) rather than JSON arrays.

Layer 3: Singletons and Read-Only Direct Methods

Direct methods for singleton routes:


Caching Integration

If WEBLING_CACHE_ENABLED is true, you can retrieve the cache instance wrapper:


Error Handling

All failed HTTP requests (status >= 400) throw a WeblingApiException which carries detailed request metadata. For security, the API key is automatically redacted from any exception messages and printed stack traces.


Testing

Mocking requests is simple by swapping the bound Client singleton instance:

Run test suite:

References

License

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


All versions of laravel-webling with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
usystems/webling-api-php Version ^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 sarfrazrizwan/laravel-webling contains the following files

Loading the files please wait ...