Download the PHP package ipaas/gapp-laravel without Composer

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

iPaaS package for Laravel

This package includes

Setup

i. Add Package

Run composer update after adding composer package

OR; by running

Make sure that the
ENV: GAPP_SECURE is set to true; and
ENV: LOG_CHANNEL on gcloud environment is set to stack-driver;

ii. Migration and Artisan Command

If you are using the version 2.0 or later, you will have access to the migration and artisan command:

command will push the middleware to the application, and furthermore using GAPP_SECURE set to true, the security will be applied.

command will create a new partner_apps table in your application, which will be used to verify the X-Api-Key when passing the middleware partner.

command will create a new row in your new partner_apps table with a provider name as optional argument.

API Documentation

Log-info (ilog)

Helper to add context information to all log entries.

Once context is added to ilog it will append to all future logs entries ilog refresh with each request and; have same life cycle as of request()

ilog() is a helper method returning singleton class Ipaas\Gapp\Logger\Client.php To add context info just call ilog() and chain any method available. Following methods are available:

Method Usage
setClientId (string) set client id/name
setClientKey (string) set client key/token
setRequestId (string) set request id/token
setType (string) type of request
prop ((string)value, (string)name) any custom key and value
setDate ((string⎮Carbon)value, (string)name) any custom date key and value
setDateFrom (string⎮Carbon) sync/request date from
setDateTo (string⎮Carbon) sync/request date to
setUuid (string⎮null) universal unique identifier
toArray() get all info as array

iLog([data-set]) can be use to re-init log data. _can be use to pass log-info to queue jobs_

Example Following example will write log in GCloud Logging with all provided context

Middleware

Validation

By default this library try to validate request by checking headers:

Logging

By default library try to translate and log following details:

Request

Request is resolved using Ipass/Request controller to use see the given example:

all given function are chain-able when extend method is used

Validate Validate request based on given rules set.

Arrify Convert request csv parameter to php array.

Boolify Convert request string 'true/false' parameter to php boolean.

Requestify Replace request given parameter value.

Response

Response helper iresponse or use by extending base controller [YOUR CONTROLLER] extends Ipaas/Response.php, with that helper you can access sendError() method too, making an exception easier.

Set Meta Chain-able function to set response meta data

Set header Chain-able function to set response header data

Other Helpers

Converter

Ipaas/Helper/Converter-Helpers

Normalized Name Replace ASCII space unicode with space.

Input:

Response:

Boolify List Convert given string 'true/false' parameter to php boolean in provided array.

Input:

Response:

Note

ps. google/cloud package is required to run application on google app engine flex environment

Troubleshooting - Upgrade v1. to v2.


All versions of gapp-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
laravel/framework Version 5.*|6.*|7.*|8.*
google/cloud Version >=0.132
google/cloud-logging Version >=1.20
google/cloud-error-reporting Version >=0.16
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 ipaas/gapp-laravel contains the following files

Loading the files please wait ....