Download the PHP package adrexia/brand without Composer

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

Silverstripe Brand module

A module to assist with a website's basic branding. Allows setting of brand colours and fonts from within a Silverstripe Admin.

Requirements

SilverStripe 4 or higher. See 3.0 branch for SilverStripe 3 support

Installation

composer require adrexia/brand

Setup

You can either just include the Favicons, and apply the colour schemes manually: <% include Adrexia/Brand/Favicons %>

Or, include the brand template in the head of you page template to get both:
<% include Adrexia/Brand/Brand %>

By default this includes the fonts, the font-colors, and the favicons. The Menu colours are left for you to implement, or disable based on your site's requirements. The Palette colours are for use on other page types, or for custom theming. For example, they can be used to add a restricted colourpalette to a page (with the help of the Color Palette module):

$brand = Brand::get()->First();

if($brand) {
    $fields->insertAfter(
        ColorPaletteField::create(
            "Color", "Color", $brand->getFullPalette()
        ), "Intro"
    );
}

There is an extension 'BrandDataObjectExtension' included for this purpose which adds a brand colour, a contrast colour, and an image. To enable it, add this to your _config.yml file:

Page:
  extensions:
   - Adrexia\Brand\BrandDataObjectExtension

The other variables provided can be called in a template with:
$Brand.Logo
$Brand.BodyBackgroundColour

To get the hex value of a colour from a colourpalette in your template you can do something like this:

<% if $Colour %>$Brand.getHex($Colour)<% else %>$Brand.getHex($Level(1).Colour)<% end_if %>

Subsite support

NOTE: Subsite support isn't yet complete for silverstripe 4

This module can work with subsites with the addition of the SubsiteModelExtension from adrexia/subsite-modeladmins (specifically, the onBeforeWrite and augmentSQL functions). You can install this via composer require, or just take the bits you need:

composer require adrexia/subsite-modeladmins

Setup:

In your yml config:

Adrexia\Brand\Brand:
  extensions:
   - SubsiteModelExtension
Adrexia\Brand\BrandAdmin
  extensions:
   - SubsiteMenuExtension

The brand extension is supplied by the subsite modeladmin module. The BrandAdmin extension is straight from the subsites module, and enables the menu item in the CMS menu.

Screenshots


All versions of brand 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 adrexia/brand contains the following files

Loading the files please wait ....