Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

adamlindqvist/betong

Repository files navigation

Deprecated...

Betong

betong-logo A modern Concrete5 starting point. Trying to make it as easy as possible to get started with a Concrete5 site.

composer create-project adamlindqvist/betong

Features

  • Gulp with Laravel Elixir
  • Clean project structure
  • Package boilerplate
  • Theme boilerplate
  • PHP Helpers

Gulp

Betong has integrated Elixir. It provides a clean, fluent API for defining basic Gulp tasks for your Betong application.

Installation

Before triggering Elixir, you must first ensure that Node.js is installed on your machine.

node -v

If you don't have Node on your machine you can install it by visiting their download page.

Within a fresh installation of Betong, you'll find a package.json file in the root. Think of this like your composer.json file, except it defines Node dependencies instead of PHP. You may install the dependencies it references by running:

npm install

If you are developing on a Windows system or you are running your VM on a Windows host system, you may need to run the npm install command with the --no-bin-links switch enabled:

npm install --no-bin-links

Usage

To use Elixir and Gulp, please run one of the following commands:

Development
gulp watch
Production
gulp --production

For more information about Elixir please visit the official document page.

Package boilerplate

Betong ships with a example package which contains code to accomplish common tasks directly from the code:

  • Install pagetypes
  • Install pagetemplates
  • Install custom-blocks
  • Install attributes
  • Install composer-fields and attach them to a pagetype

See the controller.php in public/package/betong/controller.php

Helpers

Below is a list of all supported helper methods.

Arrays Strings Miscellaneous
array_add camel_case collect
array_collapse class_basename dd
array_divide e dump
array_dot ends_with elixir
array_except snake_case value
array_first starts_with
array_flatten str_contains
array_forget str_finish
array_get str_is
array_has str_limit
array_last str_plural
array_only str_random
array_pluck str_singular
array_prepend str_slug
array_pull studly_case
array_set title_case
array_sort
array_sort_recursive
array_where
head
last