Download the PHP package bzcoding/bz-contact-php without Composer

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

BZContact PHP Form Manager

Build Status Test Coverage Code Climate

BZContact is a simple contact form manager written in PHP. It can be used to manage a contact form for a static web site, or to create a landing page and collect call to action requests.

This repo is meant to be forked and customized to create your own contact form or landing page.

Features

Installation

Deployment on Heroku

Deploy

The deployment script will provision a web process and a worker process for background tasks.

The script will also provision free plans for the following add-ons: MongoLab, Postmark, CloudAMQP, Logentries and Rollbar. If you already have paid plans on these services, or want to use other services, you can delete them and customize your configuration.

If you use the provided free version of Postmark you need to create a sender signature or you will not be able to send email notifications.

Installation on a Linux/macOS machine

Run this command from the directory in which you want to install your new application:

$ composer create-project bzcoding/bz-contact-php [your-app-name]

Customize the form and the UI theme.

Running in Development

You may use the provided Vagrant box and Ansible settings, but be aware that they have been written for development only.

Running in Staging and Production

Configuration

In order to have a working instance of BZContact you need to provide the settings through environment variables. The following settings are required:

While these others are optional:

Requirements

The JSON Form object

The form is loaded from a simple JSON object, with two top-level properties: attributes (object) and fields (array of field objects). Every field object must have at least a name or a unique id attribute, the default input type is text.

Supported field types are: text and textarea, email, tel, select, checkbox, radio, submit.

Please note that BZContact has been designed to be used with contact forms, a more complex form structure could lead to undesired results.

{
    "attributes": {
        "id": "frm-contact",
        "class": "contact-form",
        "accept-charset": "utf-8",
        "novalidate":"novalidate"
    },
    "fields": [
        {
            "id": "contact-name",
            "name": "name",
            "label": "Your name",
            "placeholder": "eg. John Appleseed",
            "required": true,
            "error": "Your name is a required field"
        },
        ...
        {
            "id": "contact-submit",
            "name": "saveForm",
            "type": "submit",
            "value": "Send message",
            "save": false
        }
    ]
}

The Webhook post format

The webhook feature is enabled by setting the WEBHOOK_URL environment variable to the desired destination URL.

The content of the form subscription is POSTed to the webhook URL with an application/json content type and a JSON body.

BZContact sends two custom headers:

Optional custom headers can be added using the WEBHOOK_HEADERS env var, each header separated by a |: WEBHOOK_HEADERS="X-Foo:123|X-Bar:xyz".

The JSON payload has the following format:

{
  "action": "saved",
  "created_at": "YYYY-MM-DD HH:MM:SS",
  "data": {
    "name": "John Doe",
    "company": "ACME Ltd",
    "email": "[email protected]",
    "phone": "",
    "subject": "It's only Rock'n Roll...",
    "message": "but I like it!\r\n~M\r\n",
    "referral": "friends",
    "client-type": "business",
    "privacy": "1",
    "ip": "xxx.xxx.xxx.xxx",
    "datetime": "YYYY-MM-DD HH:MM:SS",
    "id": "<SubmissionID>"
  }
}

The action attribute contains the event type (only saved for now). The data object contains all the form fields the addition of the subscriber IP address, datetime and submission ID.

Credits

BZContact is built on top of Slim-Skeleton application. It uses Slim 3 Framework with the PHP-View template renderer.

The default UI theme built on top of Skeleton CSS boilerplate, with a cover photo by Yair Hazout from Unsplash.

The favicon and the application logo (logo.svg) were built using icons by Freepik from Flaticon, licensed by CC 3.0 BY

License

BZContact is licensed under the MIT License - see the LICENSE file for details.


All versions of bz-contact-php with dependencies

PHP Build Version
Package Version
Requires php Version ~5.6 || ~7.0
ext-mongodb Version ^1.0
slim/slim Version ^3
slim/php-view Version ^2
monolog/monolog Version ^1
adamwathan/form Version ^0.9
michelf/php-markdown Version ^1
vlucas/valitron Version ^1
akrabat/rka-ip-address-middleware Version ^0.4.0
symfony/event-dispatcher Version ^3
swiftmailer/swiftmailer Version ^5
vlucas/phpdotenv Version ^2
php-amqplib/php-amqplib Version ^2
drewm/mailchimp-api Version ^2
guzzlehttp/guzzle Version ^6
slim/csrf Version ^0.7.0
rollbar/rollbar Version ~1.1
mongodb/mongodb Version ^1.1
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 bzcoding/bz-contact-php contains the following files

Loading the files please wait ....