Download the PHP package spatie/yaml-front-matter without Composer
On this page you can find all versions of the php package spatie/yaml-front-matter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/yaml-front-matter
More information about spatie/yaml-front-matter
Files in spatie/yaml-front-matter
Package yaml-front-matter
Short Description A to the point yaml front matter parser
License MIT
Homepage https://github.com/sebastiandedeyne/yaml-front-matter
Informations about the package yaml-front-matter
yaml-front-matter
A to the point front matter parser. Front matter is metadata written in yaml, located at the top of a file wrapped in ---
's.
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Install
You can install the yaml-front-matter
via composer:
Usage
Consider the example.md
file from above. First you'll need to parse the contents:
The parser will return a YamlFrontMatterObject
, which can be queried for front matter or it's body.
Protip: The matter
function also accepts dot notation for nested fields, e.g. matter('meta.keywords')
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Postcardware
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.
We publish all received postcards on our company website.
Credits
- Sebastian De Deyne
- All Contributors
License
The MIT License (MIT). Please see License File for more information.