Download the PHP package withcandour/statamic-blog-helpers without Composer

On this page you can find all versions of the php package withcandour/statamic-blog-helpers. 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-blog-helpers

Statamic Blog Helpers

Statamic 3.0+

Designed to enhance your statamic blog, currently this addon adds:

Installation

Install via composer:

Then publish the publishables from the service provider:

Tags

This addon provides a tag for generating the archive dates for a specific Statamic collection.

By default the dates generated will be as follows:

This example will generate a select option for each archive date.

Archives and Routing

By default the archive routes follow the pattern: /{uri}/archive/{year}/{?month}

Once installed a config/statamic/blog-helpers.php file will be created. In this file you may register your archives, the addon will then generate the routes and handle the rendering of the pages.

In this example an archive will be created for the /blog page (e.g. blog/archive/2021/01). It will use the blog.archive template view and the layout layout view. The title for this page will also be "Posts from" followed by the archive date.

Filtering

This addon adds the "blog_helpers_archive_scope" query scope which you can use to filter your collection, simply give it an archive_year and an archive_month and it will filter the entries returned by your collection tag automatically.

In this example blog_posts from March 2019 will get pulled through:

The year and month variables will get passed to the template that gets rendered for the archive pages so you could simply use:


All versions of statamic-blog-helpers 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 withcandour/statamic-blog-helpers contains the following files

Loading the files please wait ....