Download the PHP package waffler/waffler-laravel without Composer

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

Waffler for Laravel

This package is a fancy wrapper for the Laravel Framework. You must know the basics of the waffler/waffler and guzzlehttp/guzzle packages.

Installation

How to configure:

This package exposes a waffler.php config file to register your client interfaces into the application service container.

The clients array:

Register your clients in the service container.

The aliases array:

Give an alias to your clients.

The global_options array:

An array of guzzle http options to be used in all client instances.

The singletons array:

An array of clients to be registered as singletons.

The auto_generated_clients array:

An array of auto generated classes. Do not modify it, the contents of this array is auto-generated when you run the waffler:generate-code command.

The code_generation option:

This package also can generate the client interfaces if you have a swagger or another open-api spec file.

The code_generation.namespace option:

The base namespace where all interfaces will be generated.

This namespace will be auto converted to a path relative to the app/ folder.

The code_generation.openapi_files array:

Path to openapi files to generate the code. You can specify just the path to the openapi file, or provide an array of generation options. See example 1 and example 2 below.

The code_generation.openapi_files.*.namespace option:

The generated clients will be put inside code_generation.namespace plus this option value.

The code_generation.openapi_files.*.spec_type option:

Indicates the specification file schema type. It can be either openapi or swagger. The default value is openapi

The code_generation.openapi_files.*.namespace_options option:

The generated clients under the configured namespace will share this guzzle configurations. This can be useful, for instance, when clients share the same options, like base_uri.

The code_generation.openapi_files.*.ignore option:

This option still under development, but here you can ignore the generation of some method parameters. In the future, this will allow more configuration.

In the example below, a HeaderParam with the name of Authorization will not be included in the generated method parameters.

Example code:

Before ignoring:

After ignoring:

Ignorable parameter types are:

The code_generation.openapi_files.*.auto_bind option:

Automatic register the generated interfaces in the service container. Default value is true.

Contributions:

Work in progress.


All versions of waffler-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
waffler/waffler Version ^1.0.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0
waffler/opengen Version ^0.7.4
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 waffler/waffler-laravel contains the following files

Loading the files please wait ....