Download the PHP package kanopi/pantheon-headless-lightning without Composer

On this page you can find all versions of the php package kanopi/pantheon-headless-lightning. 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 pantheon-headless-lightning

Pantheon - Headless Lightning

This is a "fork'ish" version of Acquia's Headless Lightning designed to be installed on Pantheon with their build tools process.

Rational for "forking"

Headless Lightning gives us a basic headless setup with some opiniated defaults out fo the box which is great.

Pantheon composer based build tools gives us a composer based development process with CI and Github hosting which is also great and makes it super easy to setup.

This project just wraps the two together. We have also added some basic docksal setup since we know we're hosted on Pantheon.

We have also tweaked the CircleCI tests to also work on Docksal so you can run the same tests locally as will be run on CircleCI.

Just a heads up there may be some bits from the Acquia version of this repo hanging around if you're wondering why something is where it is and it doesn't make sense.

Installing on Pantheon

This assumes you have already installed the Build Tools dependencies and have your CircleCI and Github tokens ready to go.

To spin up your new Pantheon site, Github repo, CircleCI integration run.

terminus build:project:create kanopi/pantheon-headless-lightning MY-NEW-PROJECT-NAME

Docksal setup with Pantheon

Since this is a starter project you will need to edit some things and commit them to them to the Github repo that is created for your project.

In .docksal/docksal.env you need to update:

The TERMINUS_ENVIRONMENT will be the default DB download location and can probably be left at 'dev' initially. This should be updated to whatever environment is considered canonical though.

Local development

As a developer working on this project you'll need to copy .docksal/docksal-local.env.example to .docksal/docksal-local.env.

Within that file you'll need to put your Terminus machine token for this project in. Machine tokens can be created in your Pantheon account page. Once you have the machine token in you will be able to run terminus commands against Pantheon within Docksal, which is what is used to download the DB.


All versions of pantheon-headless-lightning with dependencies

PHP Build Version
Package Version
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 kanopi/pantheon-headless-lightning contains the following files

Loading the files please wait ....