{"id":22415781,"url":"https://github.com/xmas7/yaml-front-matter","last_synced_at":"2026-05-04T02:36:25.372Z","repository":{"id":143167577,"uuid":"531770258","full_name":"xmas7/yaml-front-matter","owner":"xmas7","description":"An easy to use class for handling YAML frontmatter in PHP.","archived":false,"fork":false,"pushed_at":"2022-09-02T03:37:43.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T04:18:39.503Z","etag":null,"topics":["front","matter","yaml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmas7.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-02T03:37:24.000Z","updated_at":"2024-05-20T11:09:14.000Z","dependencies_parsed_at":"2023-06-11T17:31:59.585Z","dependency_job_id":null,"html_url":"https://github.com/xmas7/yaml-front-matter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xmas7/yaml-front-matter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fyaml-front-matter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fyaml-front-matter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fyaml-front-matter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fyaml-front-matter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmas7","download_url":"https://codeload.github.com/xmas7/yaml-front-matter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fyaml-front-matter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32592715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","yaml"],"created_at":"2024-12-05T15:13:39.631Z","updated_at":"2026-05-04T02:36:25.351Z","avatar_url":"https://github.com/xmas7.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"YAML Front Matter\n================\n\nAn easy to use class for handling YAML frontmatter in PHP.\n\n### What does this class do?\n\nYAML Front Matter is a technique used to keep metadata about the file seperated from the actual content inside the file, while still only having 1 file. This simple PHP class allows you to **read such files**, and return each of the **metadata** or **content** independantly.\n\n### What files are compatible with this class?\n\nThis class is currently a stict format. The current format is following the original [Jekyll](https://github.com/mojombo/jekyll/wiki/yaml-front-matter) project example. As far as we know the current file format is only compatible with [Statamic](http://statamic.com/ \"Statamic is a flexible, flat file CMS\").\n\n\n### The format:\n\nThe current strict format is as follows:\n\n\t---\n\tfoo: bar\n\ttitle: Test\n\texpl: Make sure there is only 1 space between each of the variables\n\tinfo: you can have as many custom fields as you like\n\t---\n\t\u003ch1\u003eText Here\u003c/h1\u003e\n\t\u003cp\u003econtent\u003c/p\u003e\n\nThere is no conversion from Markdown so you will have to implement your own, or if you want you can simply use HTML and even PHP directly.\n\n### How to use this class?\n\nexample/example.php is an example file that shows you how to use this class.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmas7%2Fyaml-front-matter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmas7%2Fyaml-front-matter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmas7%2Fyaml-front-matter/lists"}