Download the PHP package i-lateral/ss4-recipe without Composer

On this page you can find all versions of the php package i-lateral/ss4-recipe. 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 ss4-recipe

ilateral SilverStripe Kitchen Sink Recipe

Base SilverStripe website install that contains all the modules we commonly use.

Creating a new project

Recipes can be introduced to any existing project (even if not created on a silverstripe base project)

SS5 Version:

`

SS4 Version (depreciated):

`

Alternatively you can create a new project based on an existing recipe

SS5 Version:

`

SS4 Version (depreciated):

`

Inlining recipes

You can "inline" either a previously installed recipe, or a new one that you would like to include dependencies for in your main project. By inlining a recipe, you promote its requirements, as well as its project files, up into your main project, and remove the recipe itself from your dependencies.

This can be done with either update-recipe, which will update a recipe, or require-recipe which will install a new recipe.

Note that if you wish to run this command you must first install either a recipe via normal composer commands, or install the recipe plugin:

or

Further Docs

More comprehensive documentation can be found at the recipe plugin github page

Themes

This recipe installs multiple possible base themes, but also builds a "custom" theme that can be used to overwrite the default selected theme.

If you want to switch out the default base theme to an alternative, it is recommended that you change bootstrap in theme.yml to your alternative, EG:

SilverStripe\View\SSViewer:
  themes:
    - 'custom'
    - 'deferedimages'
    - 'bootstrap' # Change this to your base theme
    - '$default'

Webpack

The custom theme (and parent themes) are designed to use webpack to help package and manage CSS and JS requirements.

Alternativley you can just use the default SilverStripe way (add your own files to dist/css or dist/js) but you will have to manage combining and compressing them.

This is handled automatically via webpack.

Getting Started

To get started using webpack to manage your JS and CSS requirements, first you have to install yarn

Once you have installed yarn, navigate to your theme dir:

# cd /path/to/my/project/themes/custom

Now install node modules (can take a little while)

# yarn install

Adding Custom CSS/JS

Next add your custom JS or CSS (SASS) to the relevent folders (themes/custom/src/javascript or themes/custom/src/scss respectivley), if you add any new files, you will need to import them in the following locations:

Finally, run one of the following command to transpile/minify your files

Linting

Some linting functionality is included to help keep code tidy. If you want to lint/tidy your CSS/JS you can run the following:


All versions of ss4-recipe 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 i-lateral/ss4-recipe contains the following files

Loading the files please wait ....