2017 © Pedro Peláez
 

library sculpin-readtime

A Sculpin bundle for calculating read time, similar to Medium.

image

mdwheele/sculpin-readtime

A Sculpin bundle for calculating read time, similar to Medium.

  • Wednesday, September 27, 2017
  • by mdwheele
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Read Time Bundle for Sculpin

This Sculpin bundle calculates an estimated read time for posts accessible via a post attribute., (*1)

Installation

Add mdwheele/sculpin-readtime as a requirement to your sculpin.json (if using Sculpin as a phar) or composer.json (if using Sculpin via Composer)., (*2)

Then, add the bundle to your SculpinKernel. For example:, (*3)

``` php <?php, (*4)

use Blog\Sculpin\Bundle\ReadTimeBundle\BlogSculpinReadTimeBundle; use Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel;, (*5)

class SculpinKernel extends AbstractKernel { protected function getAdditionalSculpinBundles() { return [ MdwheeleSculpinReadTimeBundle::class ]; } }, (*6)


## Usage Read time is available as a property called `read_time` on the `page` object.

{{ page.read_time }} ```, (*7)

For more information, see the Sculpin Configuration documentation., (*8)

The Versions

27/09 2017

dev-master

9999999-dev https://github.com/mdwheele/sculpin-readtime

A Sculpin bundle for calculating read time, similar to Medium.

  Sources   Download

MIT

The Requires

 

extension bundle sculpin read time