Download the PHP package halasz/trynx-support-form without Composer

On this page you can find all versions of the php package halasz/trynx-support-form. 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 trynx-support-form

Quickstart

This extension add feedback form to your application.

Instalation

Download

The best way to install Halasz/TrynxSupportForm is using Composer:

Registering

You can enable the extension using your neon config:

Injecting

You can simply inject factory in Your Presenters/Services:

Presenter

When you need to create component in your presenter for use in template you can do it as shown bellow. Don't forget use namespace Halasz:

Templates

Create method of interface ISupportFormFactory returns an component, so in your .latte you can simply call:

Default .latte file used to draw the component you can find in samples folder. You can copy this template and customize it. Path to the template you can specify via your config file.

Reqirements

IMPORTANT!!! you must link the css and js files from samples folder into your template. After that you need to call halasz.SupportForm.init(); in your js code - AFTER jQuery!!!. This extension requires jQuery v3.4.1, Bootstrap v3.3.7, netteForms.js v3 and html2canvas 1.0.0-rc.5. All of theese are included in samples folder.

Configuration

All config is optional.

Configuration must be specified in config file:

Receive data on specified URL

In PHP:

Data are sent by POST method. In $_POST are included data in format:

If user is logged in:
If user is not logged in:

in both cases can be files1-3 accessed via $_FILES Example of $_FILES content

Screenshot tips

Screenshot is generated from body element of page. Screenshot is taken according to size of body element. In some layout cases is possible that body doesn't have correct height, so if this issue hapen's to you, check height of body element.

Returned data from specified URL

This component is expecting XML with specified structure.

If everything is correctly processed:
In case of some errors:

Translation

Component has autowired translator, which is registered in config file and implements Nette\Localization\ITranslator see Nette Localization

Conclusion

This extension requires Nette3 and it is property of Tomas Halász © 2019


All versions of trynx-support-form with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
latte/latte Version ^2.5.0
nette/di Version ^3.0.0
nette/neon Version ^3.0.0
nette/utils Version ^3.0.0
nette/component-model Version ^3.0.0
nette/application Version ^3.0.0
nette/http Version ^3.0.0
nette/security Version ^3.0.0
tracy/tracy Version ^2.6.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 halasz/trynx-support-form contains the following files

Loading the files please wait ...