Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bolt/core-php

Core PHP Library

readme

Bolt PHP Core

This PHP package is for the Bolt Design System.

This package gets deployed as a read-only git repo bolt-design-system/core-php, however it's source is at bolt-design-system/bolt in packages/core-php, so don't send PRs to the first repo link, send them to the second repo link!!

Categories of Twig Extension

BoltCore

These are the set of custom Twig extensions globally used within the Bolt Design System + automatically wired up to other systems (ex. within Drupal via the bolt_connect module).

BoltCoreCompat

These are additional Twig extensions for Twig functions / filters used within the Bolt Design System's components that are specifically for cross-platform compatibility. For example, all of these extensions should already exist in Drupal enviroments by default with the exception of the pattern_template Twig function (which ships with the UI Patterns module).

BoltExtras

These are extra Twig extensions used primarily for internal testing within the Bolt Design System and are used to help build and maintain the documentation site and demos.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

5.9.1 (2022-12-07)

Note: Version bump only for package @bolt/core-php

5.9.0 (2022-12-02)

Note: Version bump only for package @bolt/core-php

5.8.2 (2022-10-19)

Note: Version bump only for package @bolt/core-php

5.8.1 (2022-10-19)

Note: Version bump only for package @bolt/core-php

5.8.0 (2022-10-18)

Note: Version bump only for package @bolt/core-php

5.7.5 (2022-09-29)

Note: Version bump only for package @bolt/core-php

5.7.4 (2022-09-27)

Note: Version bump only for package @bolt/core-php

5.7.3 (2022-09-07)

Note: Version bump only for package @bolt/core-php

5.7.2 (2022-08-30)

Note: Version bump only for package @bolt/core-php

5.7.1 (2022-08-29)

Note: Version bump only for package @bolt/core-php

5.7.0 (2022-08-12)

Note: Version bump only for package @bolt/core-php

5.6.0 (2022-07-01)

Note: Version bump only for package @bolt/core-php

5.5.0 (2022-05-23)

Note: Version bump only for package @bolt/core-php

5.4.0 (2022-04-08)

Note: Version bump only for package @bolt/core-php

5.3.1 (2022-04-04)

Note: Version bump only for package @bolt/core-php

5.3.0 (2022-03-28)

Note: Version bump only for package @bolt/core-php

5.2.4 (2022-03-03)

Note: Version bump only for package @bolt/core-php

5.2.3 (2022-02-25)

Note: Version bump only for package @bolt/core-php

5.2.2 (2022-02-07)

Note: Version bump only for package @bolt/core-php

5.2.1 (2022-02-01)

Note: Version bump only for package @bolt/core-php

5.2.0 (2022-01-25)

Note: Version bump only for package @bolt/core-php

5.1.1 (2021-12-29)

Note: Version bump only for package @bolt/core-php

5.1.0 (2021-12-20)

Note: Version bump only for package @bolt/core-php

5.0.1 (2021-11-12)

Note: Version bump only for package @bolt/core-php

5.0.0 (2021-11-10)

Note: Version bump only for package @bolt/core-php

4.7.0 (2021-11-04)

Note: Version bump only for package @bolt/core-php

4.6.2 (2021-11-03)

Note: Version bump only for package @bolt/core-php

4.6.1 (2021-10-13)

Note: Version bump only for package @bolt/core-php

4.6.0 (2021-10-12)

Note: Version bump only for package @bolt/core-php

4.5.1 (2021-09-30)

Note: Version bump only for package @bolt/core-php

4.5.0 (2021-09-24)

4.2.2-twig-2 (2021-08-17)

4.0.0-twig-2 (2021-07-08)

Note: Version bump only for package @bolt/core-php

4.4.0 (2021-09-13)

Note: Version bump only for package @bolt/core-php

4.3.0 (2021-08-30)

Note: Version bump only for package @bolt/core-php

4.2.3 (2021-08-26)

Note: Version bump only for package @bolt/core-php

4.2.2 (2021-08-11)

Note: Version bump only for package @bolt/core-php

4.2.1 (2021-08-10)

Note: Version bump only for package @bolt/core-php

4.2.0 (2021-08-03)

Note: Version bump only for package @bolt/core-php

4.1.1 (2021-07-27)

Note: Version bump only for package @bolt/core-php

4.1.0 (2021-07-19)

Note: Version bump only for package @bolt/core-php

4.0.2 (2021-07-15)

Note: Version bump only for package @bolt/core-php

4.0.1 (2021-06-24)

Note: Version bump only for package @bolt/core-php

4.0.0 (2021-06-23)

Note: Version bump only for package @bolt/core-php

3.8.0 (2021-06-10)

Note: Version bump only for package @bolt/core-php

3.7.1 (2021-06-08)

Note: Version bump only for package @bolt/core-php

3.7.0 (2021-06-01)

Note: Version bump only for package @bolt/core-php

3.6.3 (2021-05-28)

Note: Version bump only for package @bolt/core-php

3.6.2 (2021-05-26)

Note: Version bump only for package @bolt/core-php

3.6.1 (2021-05-14)

Note: Version bump only for package @bolt/core-php

3.6.0 (2021-05-13)

Note: Version bump only for package @bolt/core-php

3.5.4 (2021-04-21)

Note: Version bump only for package @bolt/core-php

3.5.3 (2021-04-16)

Note: Version bump only for package @bolt/core-php

3.5.2 (2021-04-16)

Note: Version bump only for package @bolt/core-php

3.5.1 (2021-04-12)

Note: Version bump only for package @bolt/core-php

3.5.0 (2021-04-09)

3.4.4 (2021-04-19)

Note: Version bump only for package @bolt/core-php

3.4.3 (2021-04-01)

Note: Version bump only for package @bolt/core-php

3.4.2 (2021-03-31)

Note: Version bump only for package @bolt/core-php

3.4.1 (2021-03-30)

Note: Version bump only for package @bolt/core-php

3.4.0 (2021-03-29)

Note: Version bump only for package @bolt/core-php

3.3.1 (2021-03-22)

Note: Version bump only for package @bolt/core-php

3.3.0 (2021-03-12)

Note: Version bump only for package @bolt/core-php

3.2.0 (2021-03-05)

Note: Version bump only for package @bolt/core-php

3.1.2 (2021-03-05)

Note: Version bump only for package @bolt/core-php

3.1.1 (2021-02-11)

Note: Version bump only for package @bolt/core-php

3.1.0 (2021-02-08)

3.0.2 (2021-02-03)

Note: Version bump only for package @bolt/core-php

2.31.2 (2021-02-04)

Note: Version bump only for package @bolt/core-php

3.0.2 (2021-02-03)

Note: Version bump only for package @bolt/core-php

2.31.1 (2021-02-03)

Note: Version bump only for package @bolt/core-php

2.31.0 (2021-02-02)

Note: Version bump only for package @bolt/core-php

3.0.1 (2021-01-22)

Note: Version bump only for package @bolt/core-php

2.30.2 (2021-01-21)

Note: Version bump only for package @bolt/core-php

2.30.1 (2021-01-14)

Note: Version bump only for package @bolt/core-php

2.30.0 (2021-01-13)

Note: Version bump only for package @bolt/core-php

3.0.0 (2021-01-08)

Note: Version bump only for package @bolt/core-php

2.29.2 (2020-11-30)

Note: Version bump only for package @bolt/core-php

2.29.1 (2020-11-25)

Note: Version bump only for package @bolt/core-php

2.29.0 (2020-11-23)

Note: Version bump only for package @bolt/core-php

2.28.0 (2020-09-16)

Note: Version bump only for package @bolt/core-php

2.27.1 (2020-08-28)

Note: Version bump only for package @bolt/core-php

2.27.0 (2020-08-28)

Note: Version bump only for package @bolt/core-php

2.26.3 (2020-07-31)

Note: Version bump only for package @bolt/core-php

2.26.2 (2020-07-30)

Note: Version bump only for package @bolt/core-php

2.26.1 (2020-07-29)

Note: Version bump only for package @bolt/core-php

2.26.0 (2020-07-22)

Note: Version bump only for package @bolt/core-php

2.25.1 (2020-07-14)

Note: Version bump only for package @bolt/core-php

2.25.0 (2020-07-13)

Bug Fixes

2.24.1 (2020-06-17)

Note: Version bump only for package @bolt/core-php

2.24.0 (2020-06-05)

Note: Version bump only for package @bolt/core-php

2.23.0 (2020-05-06)

Note: Version bump only for package @bolt/core-php

2.22.1 (2020-04-22)

Note: Version bump only for package @bolt/core-php

2.22.0 (2020-04-22)

Note: Version bump only for package @bolt/core-php

2.21.1 (2020-04-10)

Note: Version bump only for package @bolt/core-php

2.21.0 (2020-04-08)

Features

  • apply patches to speed up Twig rendering in Pattern Lab + within the Twig Renderer (5a21b5c)

2.20.2 (2020-03-30)

Note: Version bump only for package @bolt/core-php

2.20.1 (2020-03-26)

Note: Version bump only for package @bolt/core-php

2.20.0 (2020-03-18)

Note: Version bump only for package @bolt/core-php

2.19.1 (2020-03-11)

Note: Version bump only for package @bolt/core-php

2.19.0 (2020-03-04)

Note: Version bump only for package @bolt/core-php

2.18.1 (2020-02-21)

Note: Version bump only for package @bolt/core-php

2.18.0 (2020-02-19)

Note: Version bump only for package @bolt/core-php

2.17.1 (2020-02-11)

Note: Version bump only for package @bolt/core-php

2.17.0 (2020-02-04)

Note: Version bump only for package @bolt/core-php

2.16.3 (2020-01-28)

Note: Version bump only for package @bolt/core-php

2.16.2 (2020-01-28)

Note: Version bump only for package @bolt/core-php

2.16.1 (2020-01-27)

Note: Version bump only for package @bolt/core-php

2.16.0 (2020-01-24)

Note: Version bump only for package @bolt/core-php

2.15.2 (2020-01-21)

Note: Version bump only for package @bolt/core-php

2.15.1 (2020-01-18)

Note: Version bump only for package @bolt/core-php

2.15.0 (2020-01-17)

Note: Version bump only for package @bolt/core-php

2.14.0 (2020-01-06)

Bug Fixes

  • update testing-helpers package path (9b431b6)
  • update version in composer.json (8285d44)

2.13.3 (2020-01-02)

Note: Version bump only for package @bolt/core-php

2.13.2 (2019-12-30)

Note: Version bump only for package @bolt/core-php

2.13.1 (2019-12-17)

Note: Version bump only for package @bolt/core-php

2.13.0 (2019-12-13)

Features

2.12.0 (2019-11-26)

Note: Version bump only for package @bolt/core-php

2.11.4 (2019-11-18)

Note: Version bump only for package @bolt/core-php

2.11.3 (2019-11-15)

Note: Version bump only for package @bolt/core-php

2.11.2 (2019-11-14)

Note: Version bump only for package @bolt/core-php

2.11.1 (2019-11-14)

Note: Version bump only for package @bolt/core-php

2.11.0 (2019-11-14)

Note: Version bump only for package @bolt/core-php

2.10.0 (2019-10-29)

Note: Version bump only for package @bolt/core-php

2.9.2 (2019-10-23)

Note: Version bump only for package @bolt/core-php

2.9.1 (2019-10-22)

Note: Version bump only for package @bolt/core-php

2.9.0 (2019-10-22)

Features

  • add getBoltData Twig function (9e5be7b)

2.8.0 (2019-10-11)

Note: Version bump only for package @bolt/core-php

2.8.0-beta.6 (2019-10-04)

Note: Version bump only for package @bolt/core-php

2.8.0-beta.4 (2019-09-26)

Note: Version bump only for package @bolt/core-php

2.8.0-beta.3 (2019-09-24)

2.8.0-beta.2 (2019-09-18)

Note: Version bump only for package @bolt/core-php

2.8.0-beta.2 (2019-09-18)

Note: Version bump only for package @bolt/core-php

2.8.0-beta.1 (2019-09-14)

Note: Version bump only for package @bolt/core-php

2.7.0 (2019-09-13)

Features

  • port over Craft CMS Twig filter that adds support for using regex in the default Twig replace filter (1d29f45)

2.6.0 (2019-08-30)

Note: Version bump only for package @bolt/core-php

2.6.0-beta.2 (2019-08-27)

Note: Version bump only for package @bolt/core-php

2.6.0-beta.1 (2019-08-09)

Note: Version bump only for package @bolt/core-php

2.5.6 (2019-07-30)

Note: Version bump only for package @bolt/core-php

2.5.5 (2019-07-22)

Note: Version bump only for package @bolt/core-php

2.5.3 (2019-07-12)

Note: Version bump only for package @bolt/core-php

2.5.1 (2019-06-21)

Note: Version bump only for package @bolt/core-php

2.4.0 (2019-05-14)

Bug Fixes

  • revert version locking the core-php twig version since twig-renderer isn't a direct dependency for this to work as expected (4c54efa)
  • version bump core-php getting used + update PHP dependencies so the casehelper package is installed as expected (9808cb4)

2.4.0-beta.0 (2019-04-16)

Bug Fixes

  • Add support for attributes passed in as an object (b2baa67)
  • Don't allow an unspecified type to be considered valid (83c2444)
  • further update timeout (3ae260e)
  • increase Symfony process timeout (801db62)
  • move new custom twig functions to BoltCore (91bef25)
  • return intval from gcd function, edit comment (0f98359)
  • update custom twig tags to address Twig API changes starting to cause errors in multiple environments (3e9aaff)
  • update npm scripts to not use postinstall automatically; add postinstall to root of the repo instead (5dc3496)
  • update PHP SSR logic (854b716)
  • update remaining docs site templates as workaround to Twig embeds failing to compile (39c0675)
  • update SSR function to support older Symfony Process version (f84f10a)
  • core-php: moving phpunit from dep to devDep (2d73ebc)

Features

  • add 'gcd' twig function (e249317)
  • add case-helper library, not yet loading (WIP) (41c3227)
  • add helper functions for converting case type (5294f0f)
  • add initialize_props function, util setProp function, names to schema elements (18a3cd1)
  • add logic to convert snake or camel to kebab case (9f3f5ff)
  • add merge_attributes() function to TwigFunctions, make available in twig templates. (e352a3d)
  • addd ability to manually enable / disable server-side rendering + automatically toggle based on dev environment (861a14e)
  • extend 'initialize_props()' to return array with default props in snake_case (29730c2)
  • remove merge_attributes function (1f70798)
  • rework 'initialize_props' into 'initialize' which returns both props and data (1e559de)
  • rework buildArrayProps function, only check top-level schema props, auto-convert name to kebab (WIP) (013c527)
  • rework merge_attributes function into initialize_props which uses _context and returns array of allowed props (dc0ee4e)
  • update gcd twig function with type check (fa6d8c9)
  • wire up server side rendering process to core-php + add logic to the bolt text and button components to handle the differences in rendering (752c0df)
  • wire up ssr-server POC for handling SSR requests (5c24e5a)

2.4.0-beta.0 (2019-04-16)

Bug Fixes

  • Add support for attributes passed in as an object (b2baa67)
  • Don't allow an unspecified type to be considered valid (83c2444)
  • further update timeout (3ae260e)
  • increase Symfony process timeout (801db62)
  • move new custom twig functions to BoltCore (91bef25)
  • return intval from gcd function, edit comment (0f98359)
  • update custom twig tags to address Twig API changes starting to cause errors in multiple environments (3e9aaff)
  • update npm scripts to not use postinstall automatically; add postinstall to root of the repo instead (5dc3496)
  • update PHP SSR logic (854b716)
  • update remaining docs site templates as workaround to Twig embeds failing to compile (39c0675)
  • update SSR function to support older Symfony Process version (f84f10a)
  • core-php: moving phpunit from dep to devDep (2d73ebc)

Features

  • add 'gcd' twig function (e249317)
  • add case-helper library, not yet loading (WIP) (41c3227)
  • add helper functions for converting case type (5294f0f)
  • add initialize_props function, util setProp function, names to schema elements (18a3cd1)
  • add logic to convert snake or camel to kebab case (9f3f5ff)
  • add merge_attributes() function to TwigFunctions, make available in twig templates. (e352a3d)
  • addd ability to manually enable / disable server-side rendering + automatically toggle based on dev environment (861a14e)
  • extend 'initialize_props()' to return array with default props in snake_case (29730c2)
  • remove merge_attributes function (1f70798)
  • rework 'initialize_props' into 'initialize' which returns both props and data (1e559de)
  • rework buildArrayProps function, only check top-level schema props, auto-convert name to kebab (WIP) (013c527)
  • rework merge_attributes function into initialize_props which uses _context and returns array of allowed props (dc0ee4e)
  • update gcd twig function with type check (fa6d8c9)
  • wire up server side rendering process to core-php + add logic to the bolt text and button components to handle the differences in rendering (752c0df)
  • wire up ssr-server POC for handling SSR requests (5c24e5a)

2.3.0-rc.0 (2019-01-08)

Bug Fixes

  • fix local Bolt package versions (f1a4647)

2.2.2 (2019-01-07)

Bug Fixes

  • re-enable schema validation for pattern lab but keep disabled for the docs site till 500 server error is troubleshooted (ada76ef)

2.2.1 (2018-12-17)

2.2.0 (2018-11-18)

2.2.0-rc.1 (2018-11-07)

2.1.6 (2018-10-23)

2.1.5 (2018-10-23)

2.1.4 (2018-10-18)

2.1.3 (2018-10-18)

2.1.2 (2018-10-16)

2.1.1 (2018-10-10)

2.1.0 (2018-10-10)

2.1.0-beta.0 (2018-10-05)

2.0.0 (2018-09-27)

2.0.0-beta.2 (2018-09-19)

1.8.3 (2018-09-13)

1.8.2 (2018-09-07)

1.8.1 (2018-08-31)

1.8.0 (2018-08-27)

Bug Fixes

  • fix missing comma in package.json (e5e64e9)

1.7.2 (2018-08-10)

1.7.1 (2018-08-09)

1.7.0 (2018-08-08)

1.6.8 (2018-07-19)

1.6.7 (2018-07-19)

1.6.6 (2018-07-19)

Features

  • add new 'fileExists' Twig function to core-php's 'Extras collection (1358a91)

1.6.5 (2018-07-13)

1.6.4 (2018-07-12)

1.6.3 (2018-07-11)

Features

  • add API rendering service to build; 1st version schema form (2534f80)
  • port over handful of Twig filters needed so the full Drupal Twig Extensions composer extensions package isn't required (9fa1452)

1.6.0 (2018-07-04)

1.5.3 (2018-06-21)

1.5.2 (2018-06-19)

1.5.1 (2018-06-18)

1.5.0 (2018-06-12)

1.4.1 (2018-05-25)

1.4.0 (2018-05-18)

1.3.0 (2018-05-04)

1.2.4 (2018-04-27)

1.2.3 (2018-04-26)

1.2.2 (2018-04-26)

1.2.1 (2018-04-25)

1.2.0 (2018-04-25)

1.1.5 (2018-04-19)

1.1.4 (2018-04-17)

1.1.3 (2018-04-12)

1.1.2 (2018-04-10)

1.0.4 (2018-04-03)

1.0.3 (2018-04-03)

1.0.2 (2018-03-31)

1.0.1 (2018-03-30)

Bug Fixes

  • removing autoload from Images.php (838d73c)

Features

  • 1st pass wiring up Bolt custom Grid and Cell tags using new Class based extension system; adding workaround to autoloading, removing old extension tags being replaced (502f17e)
  • port over pattern_template Twig function (580fb7b)