Componette

Componette

nexendrie

nexendrie / book-component 2.3.0

Simple book component with list of chapters/pages and links to previous and next chapter/page

download-cloud-line composer require nexendrie/book-component

Book Component

Total Downloads Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality Code Coverage License

This package will help you create a book in Nette Framework. It has a list of chapters/pages with links to the chapters/pages, from each chapter/page you can also jump to previous and next one.

Installation

The best way to install it is via Composer. Just add nexendrie/book-component to your dependencies.

Documentation

See: https://nexendrie.gitlab.io/book-component .

  • 2.3.0 Version 2.3.0

    Changelog:

    • raised minimal version of PHP to 7.4
    • used typed properties (possible BC break)
  • 2.2.0 Version 2.2.0

    Changelog:

    • raised minimal version of PHP to 7.3
    • deprecated some getters and setters of BookControl and BookPage
    • made BookPage::$slug and BookPage::$title writable
  • 2.1.0 Version 2.1.0

    Changelog:

    • dropped support for Nette 2.4
  • 2.0.0 Version 2.0.0

    Changelog:

    • raised minimal version of PHP to 7.2
    • marked BookPagesStorage as final
    • BC break: changed parameters of method BookPagesStorage::getIndex
    • allowed Nette 3
    • BC break: removed property BookControl::$lang
    • removed dependency on nexendrie/translation, now it is just suggested
    • BC break: BookControl uses translator registered to Latte
  • 1.4.0 Version 1.4.0

    Changelog:

    • allowed customization of index and page templates
    • added conditional book pages
  • 1.3.0 Version 1.3.0

    Changes in dependencies:

    • added dependency on nexendrie/utils

    Fixes:

    • added missing getter and setter for BookControl::$lang

    Improvements:

    • made it possible to pass translator to BookControl via constructor (it is optional)
    • added event onRender for BookControl

    Changes:

    • made BookControl non-abstract, added real property $pages
    • BookPagesStorage now extends Nexendrie\Utils\Collection
  • 1.2.0 Version 1.2.0

    Changelog:

    • used message catalogue for translation by default
    • changed ids in templates
    • raised minimal version of PHP to 7.1
  • 1.1.1 Version 1.1.1

    Changelog:

    • updated for nexendrie/translation 0.1
    • code cleaning
  • 1.1.0 Version 1.1.0

    New version is out. Translating feature was moved into package nexendrie/translation which is a new dependency. Also minimal required version of Nette packages was raised to 2.4.

  • 1.0.2 Version 1.0.2

    The package was renamed to nexendrie/book-component.

  • 1.0.1 Version 1.0.1

    New version is out. It contains very little changes and most of them were internal.

    Changelog:

    • allowed setting custom folder for translation
    • do logic of Translator::setLang() only if the language is different
  • 1.0 Version 1.0

    Version 1.0 is out! What has changed? Not that much, most changes were just cosmetic. But one new feature was actually added - translations. You can have the component's text translated. See README for details. Also all code is now covered by tests.

  • 1.0-RC1 Version 1.0-RC1

    Initial version

bar-chart-fill

Statistics

download-cloud-fill
645
star-fill
1
bug-fill
0
flashlight-fill
2.9y
price-tag-2-line

Badges

guide-fill

Dependencies

Componette Componette felix@nette.org