Download the PHP package contenir/contenir-audience-mezzio without Composer

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

contenir/contenir-audience-mezzio

Continuous Integration codecov

The site half of contenir/contenir-audience for a Mezzio site. A sign-up handler hands its form to Subscriptions, which writes it to the newsletter add-on's outbox in the site's own database. The CMS's queue worker sends it to Campaign Monitor or Mailchimp later, so a slow or failing service never reaches the visitor: the only thing that can fail on the page is writing that one row.

There's no laminas-mvc variant yet: one follows when a Laminas site needs it.

Requirements

Install

Neither this package nor contenir/contenir-audience is on Packagist yet, so the site's composer.json lists both repositories:

php-db 0.6 has no stable release yet, so the site also needs "minimum-stability": "dev" with "prefer-stable": true. With laminas-component-installer, the ConfigProvider is added for you; otherwise add Contenir\Audience\Mezzio\ConfigProvider::class to config/config.php.

Configure

The CMS add-on keeps its bindings and pepper in config/autoload/extensions/<handle>.global.php, with <handle>.local.php laid over it. The site reads the same two files, so there is one definition. Mezzio's default glob doesn't reach that folder, so add a provider for it after the site's own autoload one in config/config.php:

The add-on's file holds its bindings:

And the site names the add-on it signs people up through:

The pepper must be the one the CMS add-on uses, at least 32 bytes. Everything kept after a message is sent is keyed by a peppered hash of the email, so with another pepper the site's hashes would never match the CMS's. That would let a sign-up through for someone suppressed for good.

A binding's keys are the library's (see BindingReader). An unknown key is refused, so a typo can't pass unnoticed.

Use

Call subscribe() from the site's own handler once its form is valid:

Development

runs formatting, lint and static analysis (Mago), the unit and integration suites, and mutation testing (Infection). The integration suite runs on SQLite, then on MySQL when CONTENIR_TEST_DB_* names one.


All versions of contenir-audience-mezzio with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0 || ~8.4.0 || ~8.5.0
contenir/contenir-audience Version ^0.1
php-db/phpdb Version ^0.6.0
psr/clock Version ^1.0
psr/container Version ^1.1 || ^2.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 contenir/contenir-audience-mezzio contains the following files

Loading the files please wait ...