Git Product home page Git Product logo

laravel-drip's Introduction

drip

laravel

Laravel 5.7 integration for Drip PHP package

Latest Stable Version Build Status Software License StyleCI Scrutinizer Code Quality

The package requires PHP 7.1.3+ and follows the FIG standards PSR-1, PSR-2 and PSR-4 to ensure a high level of interoperability between shared PHP.

Bug reports, feature requests, and pull requests can be submitted by following our Contribution Guide.

Documentation

Documentation for Drip PHP package can be found here.

Installation

$ composer require glorand/laravel-drip
{
    "require": {
        "glorand/laravel-drip": "^1.0"
    }
}

Set the Service Provider and Facade alias

After installing the package, open your Laravel config file located at config/app.php and add the following lines.

In the $providers array add the following service provider for this package.

\Glorand\Drip\Laravel\DripServiceProvider::class,

In the $aliases array add the following facade for this package.

'Drip' => Glorand\Drip\Laravel\DripFacade::class,

Config - Environment variables

Update your .env file

DRIP_ACCOUNT_ID=your-account_id
DRIP_API_KEY=your-api-key
DRIP_USER_AGENT=custom-agent

Usage

For usage, please refer to the Drip PHP package documentation, located here.

Contract

Use namespace Glorand\Drip\Laravel\DripContract in your controller or service constructor

Facade

Just use the Laravel facade alias Drip:: instead of the native call $drip->.

Helper

Just use the helper function drip() instead of the native call $drip->.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

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

laravel-drip's People

Contributors

glorand avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.