Download the PHP package locomotivemtl/charcoal-contrib-guide without Composer

On this page you can find all versions of the php package locomotivemtl/charcoal-contrib-guide. 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 charcoal-contrib-guide

Charcoal Guide

Charcoal contrib guide is a contrib set to add videos (youtube's, at some point vimeo's) as tutorials in the charcoal-admin interface.

Upon installation, you will get

Table of Contents

Installation

The preferred (and only supported) method is with Composer:

Dependencies

Required

PSR

Configuration

In your project's config file, require the notification module :

Then, add an youtube api key: To find an api key, go to https://console.cloud.google.com, reach a billable project then go to credentials, and add an api key. Youtube Data Api must be enabled to restrict key accordingly. To enable the api, go to Library, then search for Youtube Data Api.

Usage

Upon installation, you will get a new item in the system menu Video tutorials which will bring you to a menu for the charcoal admin guide interface. To see the scraper interface and the video association interface, you will need to have superuser access or gain access to charcoal/admin/guide/edit. Without the proper access, you will only be able to see the videos list.

Scraping youtube videos

Go to admin/guide/scrape-video, type in the playlist ID and press Import. You be redirected to the admin/guide/video page with all the newly imported videos, or none if the playlist was not accessible for any reason. Importing videos WILL overwrite existing videos, you cannot import multiple youtube playlist. Importing videos will remove all attached videos that were previously defined in the admin/guide/associate-video page.

Associating videos

As of version 0.1.0, you can associate a video to either a form or a table (widget). Meaning you can only associate videos to objects, not templates. The object list comes from the admin menu.

To associate a video, choose a Widget, then a property when defined (mostly template_ident), then, of course, the actual video. Not defining any property will results as a default behavior, thus applying the video to all entries from the choosen object. You can then press save in the sidebar and that's it. Javascript interpreter will define if a form or a table has a video attached to it.

Important notes

The order in which you define the videos has an impact on the displayed video, as only one video can be assigned to an object entry. For example, if you choose to assign a video to a form without defining the property, all subsequent videos will be avoided.

Development

To install the development environment:

To run the scripts (phplint, phpcs, and phpunit):

Development Dependencies

To do list

Coding Style

The charcoal-contrib-guide module follows the Charcoal coding-style:

Coding style validation / enforcement can be performed with composer phpcs. An auto-fixer is also available with composer phpcbf.

Credits

License

Charcoal is licensed under the MIT license. See LICENSE for details.


All versions of charcoal-contrib-guide with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0 || >=7.0
locomotivemtl/charcoal-admin Version >=0.15
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 locomotivemtl/charcoal-contrib-guide contains the following files

Loading the files please wait ....