Skip to content

Latest commit

 

History

History
47 lines (25 loc) · 1.27 KB

readme.md

File metadata and controls

47 lines (25 loc) · 1.27 KB

Laravel Crowdox

This package provides integration with edh649's unofficial PHP library for the unofficial CrowdOx API.

The package simply provides a CrowdOx facade that acts as a wrapper to the edh649/crowdox package.

Configuration

php artisan vendor:publish --provider="edh649\CrowdOxLaravel\Providers\CrowdOxServiceProvider"` to publish the configuration files

Set your configuration using environment variables, either in your .env file or on your server's control panel:

  • CROWDOX_USERNAME

The username for the authenticating account.

  • CROWDOX_PASSWORD

The password for the authenticating account.

  • CROWDOX_DRIVER (Optional)

Set this to null or log to prevent calling the CrowdOx API directly from your environment.

Usage

Facade

The CrowdOx facade acts as a wrapper. Any methods available on this class (documentation here) are available through the facade. for example:

// Get all projects
CrowdOx::projects()->all();

Thanks

Thanks to Huddle Digital for the outline of this package.

License

This package is available under the MIT license.