Download the PHP package codebar-ag/laravel-zendesk without Composer

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

Latest Version on Packagist Total Downloads run-tests PHPStan

This package was developed to give you a quick start to creating tickets via the Zendesk API.

πŸ’‘ What is Zendesk?

Zendesk is a cloud-based help desk management solution offering customizable tools to build customer service portals, knowledge base and online communities.

πŸ›  Requirements

Package PHP Laravel Zendesk
>v1.0 >8.2 > Laravel 10.0 βœ…

Authentication

The currently supported authentication methods are:

Method Supported
Basic Auth βœ…
API token βœ…
OAuth access token ❌

βš™οΈ Installation

You can install the package via composer:

Optionally, you can publish the config file with:

You can add the following env variables to your .env file:

Note: We handle base64 encoding for you so you don't have to encode your credentials.

You can retrieve your API token from your Zendesk Dashboard

Usage

To use the package, you need to create a ZendeskConnector instance.

`

Requests

The following requests are currently supported:

Request Supported
List Tickets βœ…
Count Tickets βœ…
Show Ticket βœ…
Create Ticket βœ…
Create Attachment βœ…

Responses

The following responses are currently supported for retrieving the response body:

Response Methods Description Supported
body Returns the HTTP body as a string βœ…
json Retrieves a JSON response body and json_decodes it into an array. βœ…
object Retrieves a JSON response body and json_decodes it into an object. βœ…
collect Retrieves a JSON response body and json_decodes it into a Laravel collection. Requires illuminate/collections to be installed. βœ…
dto Converts the response into a data-transfer object. You must define your DTO first βœ…

See https://docs.saloon.dev/the-basics/responses for more information.

Enums

We provide enums for the following values:

Enum Values
TicketPriority 'urgent', 'high', 'normal', 'low'
TicketType 'incident', 'problem', 'question', 'task'
MalwareScanResult 'malware_found', 'malware_not_found', 'failed_to_scan', 'not_scanned'

Note: When using the dto method on a response, the enum values will be converted to their respective enum class.

DTOs

We provide DTOs for the following:

DTO
AttachmentDTO
ThumbnailDTO
UploadDTO
CommentDTO
AllTicketsDTO
CountTicketsDTO
SingleTicketDTO

Note: This is the prefered method of interfacing with Requests and Responses however you can still use the json, object and collect methods. and pass arrays to the requests.

Examples

Create a ticket

`

List all tickets

`

Count all tickets

`

Show a ticket

`

Upload an attachment

🚧 Testing

Copy your own phpunit.xml-file.

Run the tests:

πŸ“ Changelog

Please see CHANGELOG for recent changes.

✏️ Contributing

Please see CONTRIBUTING for details.

Code Style

πŸ§‘β€πŸ’» Security Vulnerabilities

Please review our security policy on reporting security vulnerabilities.

πŸ™ Credits

🎭 License

The MIT License (MIT). Please have a look at License File for more information.


All versions of laravel-zendesk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^10.0
laravel/framework Version ^10.28
orchestra/testbench Version ^8.13
saloonphp/cache-plugin Version ^3.0
saloonphp/laravel-plugin Version ^3.0
saloonphp/saloon Version ^3.0
spatie/laravel-data Version ^3.9
spatie/laravel-package-tools Version ^1.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 codebar-ag/laravel-zendesk contains the following files

Loading the files please wait ....