Download the PHP package phplist/base-distribution without Composer

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

phpList 4 base distribution

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

About phpList

phpList is an open source newsletter manager. This project is a rewrite of the original phpList.

About this package

This module is the basis for a phpList 4 installation. It will pull in the phplist/core module (the phpList 4 core) and by default also the phplist/rest-api module (the new REST API package). The rest-api dependency is optional.

This package is intended to be cloned and then modified. It is not intended to be updated via Composer after the initial install (although updating the dependencies via composer update is fine).

This (i.e., the downloaded package) is also the place where configuration files will be stored (or symlinked to).

Installation

  1. Download and install composer.
  2. Run composer create-project -s dev --no-dev phplist/base-distribution your-project (use any name you like for the your-project directory).
  3. Switch to the your-project directory.
  4. If you would like to not have the REST API, edit the composer.json, remove the corresponding phplist/rest-api requirement, and run composer update.

Configuring and running phpList on a web server

The phpList application is configured so that the built-in PHP web server can run in development and testing mode, while Apache can run in production mode.

Production on Apache

  1. In the Apache virtual host configuration, set the directory public/ as the document root.
  2. Set a random 40-character hex secret and the phpList database credentials in the Apache virtual host configuration. Your Apache 2.4 configuration then could look like this:

Then reload or restart Apache to activate the configuration changes.

If you cannot set any environment variables in your Apache configuration, you can also set the database credentials in config/parameters.yml. However, this should only be used as a last resort as this reduces security (as an attacker with read access to the files on the web server then could read that file, whereas they then still would not be able to access the environment variables).

Use the following optimized configuration to disable .htaccess support and increase web server performance:

Development

For running the application in development mode using the built-in PHP server, use this command:

The server will then listen on http://127.0.0.1:8000 (or, if port 8000 is already in use, on the next free port after 8000).

You can stop the server with CTRL + C.

Testing

To run the server in testing mode (which normally will only be needed for the automated tests, provide the --env option:

Useful Composer scripts

You can get a list of all installed phpList modules with this command:

To compile and publish the phplist/web-frontend assets into public/build (used by the web frontend Twig templates), run:

Creating a .tar.gz package of this distribution

These are the steps to create a package for version 4.0.x-dev with the file name phplist-base-distribution-4.0.x-dev.tar.gz:

These steps assume that tar and composer are installed on your machine, and that composer is in your path (and that it is named composer, not composer.phar).

Contributing to this package

Please read the contribution guide on how to contribute and how to run the unit tests and style checks locally.

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

Docker deployment

The project includes a Docker setup to run phpList with Apache and MySQL.

Quick start (development/test):

The app container is configured to read database settings from environment variables that match config/parameters.yml defaults. The provided docker-compose.yml sets:

Notes:


All versions of base-distribution with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
phplist/core Version v5.0.0-alpha8
phplist/rest-api Version v5.0.0-alpha8
phplist/web-frontend Version v5.0.0-alpha8
doctrine/orm Version ^3.3
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 phplist/base-distribution contains the following files

Loading the files please wait ...