Download the PHP package simialbi/yii2-ticket without Composer

On this page you can find all versions of the php package simialbi/yii2-ticket. 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 yii2-ticket

Ticket system for yii2

Resources

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json.

Usage

In order to use this module, you will need to:

  1. Setup Module your application so that the module is available.
  2. Create a user identity class which extends UserInterface.
  3. Assign roles to users

Setup Module

Configure the module in the modules section of your Yii configuration file.

Parameters

Parameter Description
richTextFields Set this parameter to true to use rich text fields. To do this you need to add simialbi/yii2-summernote to the require section of your composer.json.
kanbanModule If you use the Kanban Module too, you can put the id of the module here to use link functionality.
smsProvider If you want to add SMS notification functionality, insert the sms component id here. It must implement \simialbi\yii2\sms\ProviderInterface.
canAssignTicketsToNonAgents If set to true, agents can assign tickets to non agents

Events

Event Description
EVENT_TICKET_CREATED Will be triggered after a new ticket was created.
EVENT_TICKET_UPDATED Will be triggered after a ticket was updated.
EVENT_TICKET_ASSIGNED Will be triggered after a ticket was assigned to an agent.
EVENT_TICKET_RESOLVED Will be triggered after a ticket was resolved.
EVENT_TICKET_COMMENTED Will be triggered after a ticket received a new comment.

Setup console config and apply migrations

Apply the migrations either with the following command: yii migrate --migration-namespaces='simialbi\yii2\ticket\migrations' or configure your console like this:

and apply the yii migrate command.

Be sure to have an authManager configured. The migration process creates the needed roles by this module.

Create identity

Create an identity class which implements simialbi\yii2\models\UserInterface e.g.:

After creating this class define it as identity class in your application configuration:

Assign roles to users

The migration process created the needed roles and permissions by this module. You should now have the following roles created:

Role Description
ticketAuthor Users with this role assigned can create new tickets, update and close their own tickets and create new comments in their own tickets.
ticketAgent Users with this role assigned can take tickets in assigned topics, create comments in tickets they have taken and resolve tickets.
ticketAdministrator Users with this role assigned can administrate topics, take tickets in all topics, create comments in all tickets, assign tickets to agents and resolve all tickets.

Assign the roles to the corresponding users. Afterwards you can navigate to /ticket/topic to administrate your ticket topics (e.g. IT). Each user with a role assigned can navigate to /ticket to view either their own tickets (ticketAuthor), tickets of the topics they were assigned (ticketAgent) or all tickets of all topics (ticketAdministrator).

License

yii2-ticket is released under MIT license. See bundled LICENSE for details.

Acknowledgments


All versions of yii2-ticket with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
yiisoft/yii2 Version ^2.0.20
yiisoft/yii2-bootstrap4 Version ^2.0.4
kartik-v/yii2-grid Version ^3.3.0
kartik-v/yii2-widget-select2 Version ^2.1.0
rmrevin/yii2-fontawesome Version ^3.4.0
sandritsch91/yii2-widget-flatpickr Version ^1.0.0
simialbi/yii2-simialbi-base Version >=0.10.1 <1.0 | ^1.0.0
bower-asset/autosize Version ^4.0.2
bower-asset/resumablejs Version ^1.1.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 simialbi/yii2-ticket contains the following files

Loading the files please wait ....