{"id":33990292,"url":"https://github.com/bulldogcreative/front-matter","last_synced_at":"2026-04-28T16:34:37.809Z","repository":{"id":62498143,"uuid":"148237299","full_name":"bulldogcreative/front-matter","owner":"bulldogcreative","description":"YAML and Markdown parser. Useful for creating static HTML from files.","archived":false,"fork":false,"pushed_at":"2018-09-11T13:29:08.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-14T18:06:56.833Z","etag":null,"topics":["front-matter","front-matter-parser","markdown","php","yaml"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bulldogcreative.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-11T00:34:44.000Z","updated_at":"2018-09-11T13:09:13.000Z","dependencies_parsed_at":"2022-11-02T11:33:00.770Z","dependency_job_id":null,"html_url":"https://github.com/bulldogcreative/front-matter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bulldogcreative/front-matter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulldogcreative%2Ffront-matter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulldogcreative%2Ffront-matter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulldogcreative%2Ffront-matter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulldogcreative%2Ffront-matter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bulldogcreative","download_url":"https://codeload.github.com/bulldogcreative/front-matter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulldogcreative%2Ffront-matter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["front-matter","front-matter-parser","markdown","php","yaml"],"created_at":"2025-12-13T06:05:48.083Z","updated_at":"2026-04-28T16:34:37.779Z","avatar_url":"https://github.com/bulldogcreative.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Front Matter\n\n[![Build Status](https://travis-ci.org/bulldogcreative/front-matter.svg?branch=master)](https://travis-ci.org/bulldogcreative/front-matter)\n[![Coverage Status](https://coveralls.io/repos/github/bulldogcreative/front-matter/badge.svg?branch=master)](https://coveralls.io/github/bulldogcreative/front-matter?branch=master)\n\nThis uses [Parsedown](http://parsedown.org/) and \n[Symfony/Yaml](https://symfony.com/doc/current/components/yaml.html).\n\n## Example\n\nThis is an example source file. It has YAML at the top and Markdown under that.\n\n```yaml\n---\ntitle: Hello World\n---\n    \n# Hello World\n\nIt is i, levi.\n\n[test](https://google.com)\n```\n\nThen we use the following PHP to read the config and the HTML.\n\n```php\n\u003c?php\n\ninclude 'vendor/autoload.php';\n\n$fm = Bulldog\\FrontMatter::load('file.yaml');\n\nvar_dump($fm-\u003econfig());\n// Output\n/*\narray(1) {\n  'title' =\u003e\n  string(11) \"Hello World\"\n}\n */\n\nvar_dump($fm-\u003ehtml());\n// Output\n/*\nstring(85) \"\u003ch1\u003eHello World\u003c/h1\u003e\u003cp\u003eIt is i, levi.\u003c/p\u003e\u003cp\u003e\u003ca href=\"https://google.com\"\u003etest\u003c/a\u003e\u003c/p\u003e\"\n */\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulldogcreative%2Ffront-matter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbulldogcreative%2Ffront-matter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulldogcreative%2Ffront-matter/lists"}