Download the PHP package greenpeace/planet4-gpch-plugin-blocks without Composer

On this page you can find all versions of the php package greenpeace/planet4-gpch-plugin-blocks. 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 planet4-gpch-plugin-blocks

planet4-gpch-plugin-blocks

Content Blocks, specific to the GPCH installation of Planet4.

Install

Install dependencies:

npm install --save-dev

composer install --ignore-platform-reqs

Coding Standards

Any new code added is required to implement Wordpress coding standards

Javascript: Use JSHint

Set JSHint to use .jshintrc provided in this repository.

Example for PHPStorm:

Build

Make sure your files are formatted correctly: npm run format

Make sure your files pass ESLint with the provided config: npm run lint:js

Build files for production: npm run build

Build styles: sass assets/css/source/style.scss assets/css/style.css --style=compressed

Autoloader

To generate autoload files, run composer dump-autoload

Translations

  1. Generate .pot files: Use wp-cli or PoEdit. PoEdit is the preferred option as it reads strings from all files including Twig templates.
  2. Create the .po and .mo files for each language using Poedit
  3. Transform the po files into additional JSON for use with Javascript.

See the guide in dev docs

Example: wp i18n make-json planet4-gpch-plugin-blocks-de_CH.po --no-purge

Then rename the files to use the handle instead of the auto generated md5 string in the filename.


All versions of planet4-gpch-plugin-blocks with dependencies

PHP Build Version
Package Version
No informations.
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 greenpeace/planet4-gpch-plugin-blocks contains the following files

Loading the files please wait ...