Download the PHP package keapgeek/laravel-keap without Composer

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

Laravel Package for accessing the Keap REST API (v1/v2)

Let's be honest, the php-infusionsoft SDK is shit. Barely any support for modern version of PHP and all the laravel packages, such as the upwebdesign one, that has been the main inspiration for this package, rely on the old architecture and legacy version of the Infusionsoft API.

I jump in to ensure a Laravel 10+ support for this package that completely ignores the PHP SDK and builds it's own wrapper using Laravel helpers and architectures.

This package uses OAuth 2 with the REST API v1 or v2 of Keap, WITHOUT relying on the SDK of infusionsoft.

You can find a whole website with the documentation for this package at in the wiki.

Installation

To install this package, we need to install the Laravel part and create the API credentials to connect to your Keap Application.

Laravel set up

To install the package you can use the following command

then install the package to publish the configuration

In the environment file add the following lines

Keap set up

Before we start installing the package, we need to create a Keap developer account and get our API credentials.

For more information look at the Keap documentation: visit the complete Installation Guide

In shorts the steps are repeated here below:

First Use

After installation and having setup the environment variables in the .env file. You can access the /keap/auth uri in your browser, even in the local version, to access the login page of Keap. Once logged in you can authorize the access to a specific app.

I strongly suggest to use a sandbox version of Keap, and test your Api before connecting it to your real app with your clients data.

Automatically Keap will redirect you to a confirmation page that will simply say Successful Connection!. From there you can start using the Laravel Keap service.

Automatically refresh the Oath token

Keap will transmit an access and refresh token that are stored in the cache, therefore pay attention when you clear it.

The refresh code can be used only for 24 hours. However, you can refresh the code with the artisan command

You can set up this command in the Console\Kernel.php file to run twice or thrice a day to prevent the code from expiring.

Accessing the API

To access the REST API, you can use the Keap Facade:

The methods of the Keap Facade allow you to automatically call the API endpoints.

A list of all the available methods are can be found in the API Docs

Testing

Credits

Any help in developing this package is welcome!

License

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


All versions of laravel-keap with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.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 keapgeek/laravel-keap contains the following files

Loading the files please wait ....