Awesome Open Source
Awesome Open Source


Build Status

Entitle is a Craft plugin which makes it easy to apply AP-style title capitalisation rules to the text on your website.


Each release of Entitle is automatically tested against PHP 7.1 and above. It's also manually tested on the most recent version of Craft.

PHP 7.0 support

In theory, Entitle should be compatible with PHP 7.0. In practise, it's impossible to test this, because the Codeception dependency tree includes components which only work with PHP 7.1+.

Unfortunately there's nothing we can do about that.


To install Entitle, either search for "Entitle" in the Craft Plugin Store, or add it as a Composer dependency.

Here's how to install Entitle using Composer.

  1. Open your terminal, and navigate to your Craft project:

     cd /path/to/project
  2. Add Entitle as a project dependency:

     composer require experience/entitle
  3. In the Control Panel, go to "Settings → Plugins", and click the "Install" button for Entitle


Entitle allows you to specify "protected" words, which are not subject to the AP capitalisation rules. This is useful for ensuring that acronyms, brand names, and the like are not modified.

After installing Entitle (as described above), navigate to its settings page, and enter your "protected" words as a comma-delimited string.


There are three ways to use Entitle:

  • As a Craft service.
  • As a template variable.
  • As a Twig filter.


The Entitle service exposes a single method, capitalize. The method accepts an input string, and returns the correctly-capitalised result.

// Result: 'Of Mice and Men'
Entitle::getInstance()->entitle->capitalize('of mice and men');

Template variable

Entitle exposes a single template variable, capitalize. As with the service method of the same name, it accepts an input string, and returns the correctly-capitalised result.

// Result: 'Fear and Loathing in Las Vegas'
{{ craft.entitle.capitalize('fear and loathing in las vegas') }}

Twig filter

Entitle exposes a single Twig filter, entitle.

// Result: 'The Hound of the Baskervilles'
{{ 'the hound of the baskervilles'|entitle }}
Alternatives To Entitle.craft Plugin
Select To Compare

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (286,200
Twig (3,365
Craftcms (2,661
Craft Plugin (412
Craftcms Plugin (192