{"id":15651536,"url":"https://github.com/mre/creamy","last_synced_at":"2025-04-30T19:48:14.482Z","repository":{"id":140821732,"uuid":"1505984","full_name":"mre/Creamy","owner":"mre","description":"A simple CMS in the style of Perch.","archived":false,"fork":false,"pushed_at":"2012-03-07T14:20:09.000Z","size":508,"stargazers_count":32,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T19:23:12.265Z","etag":null,"topics":["cms","content-management","perch","php","simple"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mre.png","metadata":{"files":{"readme":"README.mkdn","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-21T09:28:55.000Z","updated_at":"2022-07-30T17:26:57.000Z","dependencies_parsed_at":"2023-03-13T10:04:40.860Z","dependency_job_id":null,"html_url":"https://github.com/mre/Creamy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2FCreamy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2FCreamy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2FCreamy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mre%2FCreamy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mre","download_url":"https://codeload.github.com/mre/Creamy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774006,"owners_count":21641719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cms","content-management","perch","php","simple"],"created_at":"2024-10-03T12:38:55.365Z","updated_at":"2025-04-30T19:48:14.457Z","avatar_url":"https://github.com/mre.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Creamy][Logo]\n\nA tiny content management system similar to Perch.\n\n## Usage\n\n1. Open `creamy.php` with a text editor and configure usernames and\n   passwords.\n\n2. Upload `creamy.php` and the `creamy` folder to your server.\n\n3. Call creamy within your static pages:  \n\n```php\n\u003c?php require_once(\"creamy.php\"); ?\u003e\n```\n\n4. Create a content area (an editable region) wherever you want:  \n\n```php\n\u003c?php Creamy::content(\"news\"); ?\u003e\n```\n\n5. Open the backend at `example.com/creamy` and edit the content area.\n\n\n## Features\n\n### Markdown support\n\nContent areas (the text files included in your page) can be formatted with [Markdown][1].  \nThe syntax is easy to learn and makes for great formatting (you can also\ndisable Markdown support altogether).\n\n### Templating engine\n\nCreamy uses twig for templating.  \nIt's pretty awesome. There is [lots of documentation][2].\n\n### Themes\n\nThemes are common parts of a website which will not be editable -- like headers, footers and sidebars.\nPut them into a folder called `theme` (relative to `creamy.php`).\nYou can now use it on any page like this:  \n\n```php\n\u003c?php Creamy::theme(\"header\"); ?\u003e\n```\n\n### Variables\n\nLet's get fancy! You can use variables in your themes and content\nareas:\n\nLet's say you have a variable named {{ title }} inside a theme file.\nHere is how to fill it with a value:\n\n```php\n\u003c?php $options = array(\"title\" =\u003e \"Creamy awesomeness!\"); ?\u003e\n\u003c?php Creamy::theme(\"header\", $options); ?\u003e\n```\n\nOr you might want a different layout (here: table.html) \nfor a content area and also omit markdown support for this area.  \nHere is how to do it:  \n\n```php\n\u003c?php \n  $options = array(\"layout\" =\u003e \"table\", \"markdown\" =\u003e false);\n  Creamy::content(\"events\", $options);\n?\u003e\n```\n\n### Metadata\n\nYou can place metadata at the head of every markdown file like this:\n\n    author: Oscar Wilde\n    year: 1883\n    title: Personal Impressions of America (Leadville)\n    ---\n    Over the piano was printed a notice:  \n    Please do not shoot the pianist. He is doing his best.\n\nThe first three lines are interpreted as metadata and can be used in\nyour templates like this:  \n\n```php\n{% for post in posts %}\n  {{ post.title }}, written by {{ post.author }} in {{ post.year }}:\n  {{ post.text }}\n{% endfor %}\n```\n\n## FAQ\n\n#### Q: A CMS...oh really? Why don't you use one of the gazillion other systems?\nA: I want a lightweight CMS that happily adapts to static layouts not the other way round.\n\n#### Q: Why not use perch instead?\nA: Creamy is more flexible and it is free software. You can modify it to your hearts content.\nFurthermore it's file based. You don't need a database to run it.\nAlso, I personally prefer an erb/mustache/twig-like templating engine\nover the XML-style one that comes with perch.\n\n#### Q: Why not use jekyll instead?\nA: I love jekyll. I use it for my own blog but it's cumbersome to\nconfigure and has no admin backend for my clients. You can think of creamy as a\nuser-friendly jekyll clone.\n\n#### Q: Who might want to use it?\nA: Creamy is ideal for small web pages.\nIt doesn't get into your way and helps you get some dynamic elements\ninto otherwise static pages real quick.\nYou can create a simple template and publish content in no time.\n\nHackers can also use source control software like git or svn and a plain\ntext editor to manage sites.\n\n## Credits\n\nThis piece of software relies on fantastic work by lots of creative people.\n\n- [twig][3] by Fabien Potencier, Armin Ronacher and others\n- [Markdown][4] by John Gruber\n- [PHP Markdown][5] by Michel Fortin\n- [WMD Editor][6] by John Fraser of AttackLabs,\n  Reverse Engineered by Dana Robinson\n- [spyc][7] by Chris Wanstrath and Vlad Andersen\n- [Wireframe mono icons][8] by Gentleface.com\n\n## Copyright\n\nCopyright (C) 2011 Matthias Endler  \nhttp://www.matthias-endler.de\n\n## License\n\nGNU General Public License version 3.  \nSee LICENSE.txt for details.\n\n[Logo]: https://github.com/mre/Creamy/raw/master/creamy/theme/img/creamy.png\n\n[1]: http://daringfireball.net/projects/markdown/\n[2]: http://www.twig-project.org/documentation\n[3]: http://twig-project.org/\n[4]: http://daringfireball.net/projects/markdown/\n[5]: http://michelf.com/projects/php-markdown/\n[6]: https://github.com/derobins/wmd\n[7]: http://spyc.sourceforge.net\n[8]: http://gentleface.com/free_icon_set.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmre%2Fcreamy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmre%2Fcreamy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmre%2Fcreamy/lists"}