{"repo":"roelofjan-elsinga/aloia-cms","free":true,"listed":false,"github":"https://github.com/roelofjan-elsinga/aloia-cms","clone":"git clone https://github.com/roelofjan-elsinga/aloia-cms.git","description":"A drop-in flat-file CMS for Laravel.","language":"PHP","stars":187,"topics":["php","laravel","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Aloia CMS This package contains a drop-in CMS that uses files to store its contents. For the full documentation, go to the Aloia CMS Documentation website. Installation You can include this package through Composer using: and if you want to customize the folder structure, then publish the configuration through: Creating a custom content type Creating a custom content type is very simple. All you have to do is create a class that extends AloiaCms\\Models\\Model , specify a $folder path , and optionally add required fields to $required fields . An example can be found below: Once you have a class like this, you can interact with it like described under \"Usage of models\" Built-in models There are 4 built-in models which you can use without any additional set-up: - Page - Article - ContentBlock - MetaTag Of course, you can add your own models as described at \"Creating a custom content type\". Usage of models In this example we're looking at one of the built-in content types: Article. You can use these same steps for all classes that extend from \"AloiaCms\\Models\\Model\". To load all articles in the \"articles\" folder in the folder you specified in config('aloiacms.collection path') you can use the following script: You can use that to display your posts on a page. You can also load a single post, using: If you only want all published posts, you'll need to retrieve them like so: To get the raw contents of each article (content + front matter), you can use: And finally, to update your ar","default_branch":null,"files":null,"tree":[],"storefront":"/r/roelofjan-elsinga","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roelofjan-elsinga/aloia-cms/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}