{"id":17641693,"url":"https://github.com/revuls/slimcms","last_synced_at":"2025-05-06T21:44:08.215Z","repository":{"id":12282595,"uuid":"14907371","full_name":"revuls/SlimCMS","owner":"revuls","description":"CMS created with Slim Framework using Json files instead of Database","archived":false,"fork":false,"pushed_at":"2013-12-03T23:31:58.000Z","size":1096,"stargazers_count":66,"open_issues_count":2,"forks_count":30,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-19T14:58:24.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revuls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-03T22:12:32.000Z","updated_at":"2024-11-09T01:53:35.000Z","dependencies_parsed_at":"2022-09-10T16:32:31.896Z","dependency_job_id":null,"html_url":"https://github.com/revuls/SlimCMS","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revuls%2FSlimCMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revuls%2FSlimCMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revuls%2FSlimCMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revuls%2FSlimCMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revuls","download_url":"https://codeload.github.com/revuls/SlimCMS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776297,"owners_count":21802459,"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":[],"created_at":"2024-10-23T07:07:35.578Z","updated_at":"2025-05-06T21:44:08.196Z","avatar_url":"https://github.com/revuls.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"SlimCMS\n=======\nIt is a CMS created with Slim Framework that doesn't use Database to store the content of the site.\n\n* Powerful and Flexible\n* Smaller learning curve than other CMS\n* Easy installing\n* Separation between Users and Designers\n* No Developers needed\n* No database needed\n\n1 Getting Started\n---------------\n1. Get or download the project\n2. Install it using Composer\n\nAlso you can download the different versions from:\n[https://github.com/revuls/SlimCMS/releases](https://github.com/revuls/SlimCMS/releases)\nThen Upload the files to your server.\n\n2 Folder System\n-------------\n* admin/\n* content/\n* lib/\n* themes/\n* index.php\n\n2.1 content/\n-------------\nAll the content is stored in this folder using json files.\nStructure of the content folder:\n\nblog/\nmedia/\nmenu/\npages/\nconfig.php\n\n**2.1.1 config.json**\n\nThis file contents the Config variables of the Site\n\n```json\n{\n    \"title\": \"Bootsoft\",\n    \"description\": \"This is a Great site\",\n    \"user\": \"admin\",\n    \"password\": \"d033e22ae348aeb5660fc2140aec35850c4da997\",\n    \"theme\": \"foundation5\",\n    \"url\": \"\"\n}\n```\nPassword encoded in sha1\n\n**2.1.2 pages/**\n\nOne json file per Page. Format: {slug}.json\n\n```json\n{\n    \"Template\": \"template2\",\n    \"Slug\": \"about\",\n    \"Title\": \"About page\",\n    \"Description\": \"Description goes here\",\n    \"Content\": \"This is the About content\",\n    \"Variables\": {\n        \"Block1\": \"This is the block 1\",\n        \"Block2\": \"This is the block 2\"\n    }\n}\n```\n\n**2.1.3 blog/**\n\nOne json file per Post. Format: {DateTime}_{slug}.json\n\n```json\n{\n    \"Slug\": \"hello-world\",\n    \"Title\": \"Hello World\",\n    \"Author\": \"Cesar Redondo\",\n    \"Date\": \"11\\/26\\/2013\",\n    \"Tag\": \"hello,world\",\n    \"Category\": \"General\",\n    \"Description\": \"Description goes here\",\n    \"Content\": \"This is a hello world example\",\n    \"DateTime\": 1385496962\n}\n```\n\n**2.1.4 menu/**\n\nOne json file per Menu (header, footer, sidebar...). Format: {menu_name}.json\n\n```json\n{\n    \"Link1\": \"http://urlofsite.com/index\",\n    \"Link2\": \"http://urlofsite.com/page2\",\n    \"Link3\": \"http://urlofsite.com/page3\",\n    \"Link4\": \"http://urlofsite.com/page4\"\n}\n```\n\n**2.1.5 media/**\n\nHere we have the images, videos, etc... To be accesible when creating the content of the pages and posts.\n\n\n2.2 admin/\n----------\nSimple and easy to use admin tool.\nTo add content to the site go to: http://your_url/admin\n\nDefault Login that can be changed in the config\n\n* User: admin\n* Password: admin\n\n\n2.3 themes/\n-----------\nHere we have the folders of the different Themes.\n\nBasic structure of one Theme:\n\n```html\n{name_theme}/\n\n  css/\n  img/\n  js/\n  layout/\n  templates/\n  404.html\n  article.html\n  blog.html\n  index.html\n  page.html\n```\n\nExample of simple page using variables:\n\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003e{{config.title}}\u003c/title\u003e\n        \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e        \n        \u003ch1\u003e{{page.Title}}\u003c/h1\u003e\n        {{page.Content}}\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nThe Flexibility and Power of Twig can be used in the templates.\nHere you have the official documentation for designers:\n[http://twig.sensiolabs.org/doc/templates.html](http://twig.sensiolabs.org/doc/templates.html)\n\n**2.3.1 Variables**\n\nThese are the variables that we can use in Themes:\n\n\n```php\n{{config}}\n    {{config.title}}\n    {{config.description}}\n    {{config.user}}\n    {{config.theme}}\n{{page}}\n    {{page.Title}}\n    {{page.Slug}}\n    {{page.Author}} //In posts of the Blog\n    {{page.Date}} //In posts of the Blog\n    {{page.Tag}} //In posts of the Blog\n    {{page.Category}} //In posts of the Blog\n    {{page.Description}}\n    {{page.Content}}    \n    {{page.Variables}} //In pages only\n    \t{{page.Variables.nameOfVariable}}\n{{blog}}\n{{menus}}\n{{themes}}\n```\n\n2.4 index.php\n-------------\n\nAll the slim framework routing functionality\nThis is the routing used in the project:\n\n```php\n// Index Page\n$app-\u003eget('/', function () use ($app) {   \n   // Render index.html\n});\n// Page\n$app-\u003eget('/:slug', function ($slug) use ($app) {\n    // Render page.html\n});\n// Blog\n$app-\u003eget('/blog/', function () use ($app) {\n    // Render blog.html\n});\n// Blog Article\n$app-\u003eget('/blog/:slug', function ($slug) use ($app) {\n    // Render article.html\n});\n\n```\n\n3 How to Contribute\n-------------------\n\n1. Fork the SlimCMS repository\n2. Create a new branch for each feature or improvement\n3. Send a pull request from each feature branch to the develop branch","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevuls%2Fslimcms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevuls%2Fslimcms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevuls%2Fslimcms/lists"}