Download the PHP package thoughtco/statamic-starter-kit without Composer

On this page you can find all versions of the php package thoughtco/statamic-starter-kit. 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 statamic-starter-kit

Starter Kit

The starter kit is an attempt give you the additional extras TC run on top of a Statamic install. If you feel something else which is used on a regular basis should be installed, let us know and we can have a look.

Install

On the blank Statamic install, SSH in and run

One installed enter values in the prompt to update the APP_NAME, APP_KEY and APP_URL in the .env file.

By default the following packages are added:

Cookie Panel:

Livewire

Redirects:

Postmark Spam Check

SEOPro:

Social Links:

Statamic CP Resources:

Static Cache Manager

Google Maps

The following ENV Variables will need added.

A video of how to obtain both the key and the id can be found here.

Postmark

We don’t use our own servers to send emails from, we rely on Postmark for delivery with the added bonus of we get visibility on deliverability .etc.

Blueprints

Panels in fieldsets

Fieldsets

There are three fieldsets setup in the default build:

will output something similar to:

If you don't need any classes, simply leave the attribute out. Any classes should be specified directly in the html and not left to the client to input.

Globals

There are 4 globals setup

Collections

May need mounted to relevant page entry if a new one is added. The news collection needs to mounted to the relevant news page.

Users

Admin role, need to add permissions to it if collections etc are added.

Image Partial

The generation of the picture element has now been moved into a partial.

The following parameters can be passed:

@param image: An image URL. (required)
@param sizes: The sizes attribute. Something like (min-width: 768px) 55vw, 90vw for example.
@param aspect_ratio: Pass in an aspect ratio to crop the image in a certain way. 16/9 for example or specify a second ratio for larger screens: 1/1 large:1/2.
@param skip_ratio_steps: Integer. Skip 1, 2 or 3 ratio steps to force small screens rendering big images to use mobile cropping instead of large cropping.
@param srcset_from: The path to a partial with an alternative srcset definition array. Something like snippets/srcset_full_width for example.
@param class: Add optional CSS classes.
@param cover: Boolean. Whether the image should cover the parent. Uses the focus position. @param bg: String. Sets a background color for transparent images.
@param blur: Integer. Adds a blur effect to the image. Use values between 0 and 100.
@param brightness: String. Adjusts the image brightness. Use values between -100 and +100, where 0 represents no change.
@param contrast: String. Adjusts the image contrast. Use values between -100 and +100, where 0 represents no change.
@param filter: String. Applies a filter effect to the image. Accepts greyscale or sepia.
@param flip: String. Flips the image. Accepts v, h and both.
@param gamma: Float. Adjusts the image gamma. Use values between 0.1 and 9.99.
@param orient: String. Rotates the image. Accepts auto, 0, 90, 180 or 270.
@param sharpen: Integer. Sharpen the image. Use values between 0 and 100.
@param pixelate: Integer. Applies a pixelation effect to the image. Use values between 0 and 1000.
@param lazy: Boolean. Whether the image should be natively lazy loaded.
@param quality: Integer. Set image quality. Defaults to 85.
@param imageAlt: String. Set the alt text you want to use on the image.

Map Partial

A snippet which outputs a Google Map with the 3rd Party Consent for cookies included. An API key and a Map ID are required which you can do here

Note: this is only a starting point and the snippet should be amended for your particular use case.

@param locations: Array. Send locations through to the map partial.

Additional Image Information

We use the BlurHash addon to create a blurred version of the image and then when the image has loaded the main image is brought in. See https://packagist.org/packages/thoughtco/statamic-blurhash for more information on image blurring. Front End should deal with the transformation from the blurred image to the live image.

Outputting Forms

Forms use the concept of a 'driver' (either precognition, livewire or blank) so the appropriate code is loaded depending on the context the are used.

The fields loop should now become the below for precognition:

The below for LiveWire (model_prefix is the path to the model we're updating, eg data.):

If you want to show the labels:

Clearing cache

Clearing the cache using php artisan cache:clear will no longer clear the stache or asset cache. Most of the time this is what you want as rebuilding the stache can be slow.

If you want to manually clear and re-warm the stache use

php please stache:clear && php please stache:warm.

If you want to clear the assets meta cache use:

php artisan cache:clear asset_meta.

If you want to clear the assets folder cache use:
php artisan cache:clear asset_container_contents.

Most of the time you'll want to do both:
php artisan cache:clear asset_meta && php artisan cache:clear asset_container_contents


All versions of statamic-starter-kit with dependencies

PHP Build Version
Package Version
No informations.
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 thoughtco/statamic-starter-kit contains the following files

Loading the files please wait ....