Download the PHP package labcoding/feedback without Composer

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

ZF2 Feedback module

Installation

Add this project in your composer.json:

Now tell composer to download Domain by running the command:

OR

Run command in console

Post installation

Enabling it in your application.config.php file.

Then you need creating DB table `feedback.'

CREATE TABLE IF NOT EXISTS `feedback` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(50) DEFAULT null,
    `email` VARCHAR(100) DEFAULT null,
    `message` TEXT,
    `answer` TEXT EFAULT NULL,
    `created_dt` DATETIME NOT NULL,
    `updated_dt` DATETIME NOT NULL,
    `status` TINYINT(1) DEFAULT 1,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

OR run console command:

And the last, copy to your public folder javascript files: feedback.jfeedbacker.js(they mast located in js/module/feedback feedbackand include partial wear you want to see feedback ffeedbacke> <?= $this->partial('partials/feedback-form.phtml'); ?>

Events

Feedback events arise when user send feedback ofeedbacksent answer to user.

Add new field to feedback (form, table, entity)

1 - Create in your project module Feedback

2 - Add to config new entity map structure:

    'entity_map' => [
        'Feedback' => [
            'entityClass' => \Feedback\Domain\Feedback::class,
            'table' => 'feedback',
            'primaryKey' => 'id',
            'columnsAsAttributesMap' => [
                'id' => 'id',
                'name' => 'name',
                'phone' => 'phone', // it is new field
                'email' => 'email',
                'message' => 'message',
                'answer' => 'answer',
                'created_dt' => 'createdDt',
                'updated_dt' => 'updatedDt',
                'status' => 'status',
            ],
            'criteriaMap' => [
                'id' => 'id_equalTo',
            ]
        ],
    ]

3 - Create new Feedback entity file, extends it from \LabCoding\Feedback\Domain\Feedback, and add new property:

4 - Crete new input filter, and add it to service manager:

5 - At the last add new field to feedback form


All versions of feedback with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
zendframework/zend-db Version ~2.5.0
zendframework/zend-mvc Version ~2.5.0
zendframework/zend-servicemanager Version ~2.5.0
zendframework/zend-eventmanager Version ~2.5.0
t4web/infrastructure Version ~1.2.0
t4web/domain-module Version ~1.2.0
t4web/crud Version ~1.0.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 labcoding/feedback contains the following files

Loading the files please wait ....