All Projects → mecha-cms → Mecha

mecha-cms / Mecha

Licence: gpl-3.0
Mecha is a free flat-file content management system that carries the concept of minimalism.

Projects that are alternatives of or similar to Mecha

Getsimplecms
GetSimple CMS
Stars: ✭ 333 (+278.41%)
Mutual labels:  cms, file, flat
RecordParser
Zero Allocation Writer/Reader Parser for .NET Core
Stars: ✭ 155 (+76.14%)
Mutual labels:  file, flat
Lazer Database
PHP flat file database to store data with JSON
Stars: ✭ 254 (+188.64%)
Mutual labels:  file, flat
Hudi Resources
汇总Apache Hudi相关资料
Stars: ✭ 79 (-10.23%)
Mutual labels:  apache
Piranha.core
Piranha CMS is the friendly editor-focused CMS for .NET Core that can be used both as an integrated CMS or as a headless API.
Stars: ✭ 1,242 (+1311.36%)
Mutual labels:  cms
Docker Superset
Repository for Docker Image of Apache-Superset. [Docker Image: https://hub.docker.com/r/abhioncbr/docker-superset]
Stars: ✭ 86 (-2.27%)
Mutual labels:  apache
Flat Remix Gnome
Flat Remix is a GNOME Shell theme inspired by material design. It is mostly flat using a colorful palette with some shadows, highlights, and gradients for some depth.
Stars: ✭ 1,291 (+1367.05%)
Mutual labels:  flat
Gatsby Source Notion Database
Load data from Notion's database [WIP]
Stars: ✭ 80 (-9.09%)
Mutual labels:  cms
Iceberg
Apache Iceberg
Stars: ✭ 1,274 (+1347.73%)
Mutual labels:  apache
Vuecms
Static blogging for developers using NuxtJS + VueJS
Stars: ✭ 85 (-3.41%)
Mutual labels:  cms
Trafficserver
Apache Traffic Server™ is a fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server.
Stars: ✭ 1,258 (+1329.55%)
Mutual labels:  apache
Web Publisher
Superdesk Publisher - the next generation publishing platform for journalists and newsrooms.
Stars: ✭ 82 (-6.82%)
Mutual labels:  cms
Vue Filepond
🔌 A handy FilePond adapter component for Vue
Stars: ✭ 1,263 (+1335.23%)
Mutual labels:  file
Web exploit detector
The Web Exploit Detector is a Node.js application used to detect possible infections, malicious code and suspicious files in web hosting environments
Stars: ✭ 81 (-7.95%)
Mutual labels:  cms
Copilot
Kickstart your next web project
Stars: ✭ 88 (+0%)
Mutual labels:  cms
Strapi Plugin Import Content
Import plugin for Strapi CMS
Stars: ✭ 80 (-9.09%)
Mutual labels:  cms
Accounts Ui
Zesty.io account management application
Stars: ✭ 87 (-1.14%)
Mutual labels:  cms
Mezzanine Api
RESTful web API for Mezzanine CMS
Stars: ✭ 84 (-4.55%)
Mutual labels:  cms
Spark States
Custom state store providers for Apache Spark
Stars: ✭ 83 (-5.68%)
Mutual labels:  apache
Fileinfo
📄Get information on over 10,000 file extensions right from the terminal
Stars: ✭ 86 (-2.27%)
Mutual labels:  file

Mecha CMS

Mecha is a flat-file content management system for minimalists.

Download Learn

Gitter

Front-End

The default layout uses only Serif and Mono fonts. Different operating systems might display somewhat different results. This preview was taken through a computer with Linux operating system. Serif font that’s displayed in the preview below should be DejaVu Serif:

Front-End

Back-End (Optional)

To be able to activate the back-end feature requires you to install our panel and user extensions. This feature is forever optional. You can choose to use this feature in the local version only, and get rid of it in the public version as the most basic security measure if you want.

Back-End

Colors and font types in the control panel preview above are generated from the default layout files. Without them, the display will look like the preview below:

Back-End

Mecha survives on the principle that a database-less site should be personal, portable, light and easy to be exported and backed up. That’s why most of the projects associated with Mecha are created with personal natures and are dedicated to be used for personal purposes such as blog, journal and diary. Mecha’s market shares are people with high creativity and individuals who want to dedicate themselves to the freedom of speech, that probably don’t have much time to learn web programming languages. By introducing Mecha as files and folders that used to be seen by people everyday in their working desktop, we hope you will soon be familiar with the way Mecha CMS works.

Mecha is as simple as files and folders. Yet, that doesn’t mean that Mecha is weak. Mecha has fairly flexible set of API that you can use without having to make it bloated, keeping you happy focused on developing your own site, according to your personality.

If you want to make something that is super huge with Mecha, that would be possible, but remember that Mecha wasn’t created to replace databases. Mecha was previously created simply to help people getting rid of various resources that are not needed from the start (such as databases). There will be a time when you need a database, and when that time comes, just use a database. Mecha is fairly open to be extended with other database-based applications.

Features

  • Writing pages with ease using Markdown.
  • Unlimited page children.
  • Unlimited page fields.
  • Extensible as hell.
  • Create unique design for each blog post by adding special CSS and JavaScript files using the art extension.
  • Built-in commenting system using the comment extension.
  • RSS and Sitemap using the feed and sitemap extension.
  • Easy to use and well documented API.
  • Almost everything are optional.
  • Control panel extension.

Environments

  • PHP 7.1.0 and above, with enabled mbstring and dom extension.
  • Apache 2.4 and above, with enabled mod_rewrite module.

Preparations

  1. Make sure that you already have the required components.
  2. Download the available package from the home page.
  3. Upload Mecha through your FTP/SFTP to the public folder/directory on your site, then extract it!
  4. Take a look on the available extensions and layouts that you might be interested.
  5. Upload your extension files to .\lot\x and your layout files to .\lot\layout. They’re auto-loaded.
  6. Read on how to add pages and tags. Learn on how to create pages from the author by looking at the source code.
  7. Install the panel extension if you are stuck by doing everything manually. You always have the full control to remove this extension without having to worry that your site will stop running after doing so.

Alternatives

Command Line

This assumes that your site’s public directory is in /var/www.

Using Composer

$ cd /var/www
$ composer create-project mecha-cms/mecha .

Using Git

$ cd /var/www
$ git clone https://github.com/mecha-cms/mecha.git .
$ rm LICENSE README.md
$ rm -r .git

Web Browser

Download the installer file from https://mecha-cms.com/start and then follow the instructions.


Contributors

Release Notes

main

  • [x] Added Path::long() and Path::short() method.
  • [x] Added second parameter to the content function to allow user to use this function to create a file.
  • [x] Fixed bug of SGML class when parsing attributes contain Base64 image URL.
  • [x] Improved class auto-loader. \ now will be converted into /, and __ will be converted into . (#96)
  • [x] Improved internal JSON validator.
  • [x] Removed function mecha.
  • [x] Updated function and method parameter names. Make them to be more semantic for better support with the new named parameter feature in PHP 8.x.

2.5.3

  • Bug fixes.

2.5.2

  • Added path helper function.
  • Removed cache optimization stuff from .htaccess. The main .htaccess file should focus only to the rewrite module.
  • Removed all image asset methods.

2.5.1

  • Added YAML\SOH, YAML\ETB, and YAML\EOT constant in the YAML extension (#94)

2.5.0

  • Added $status parameter to Guard::kick() with default value set to 301.
  • Added ? symbol for Route as alias of :key pattern. So, foo/bar/:baz will be equal to foo/bar/?.
  • Added ability to set response status automatically based on the first numeric layout path.
  • Renamed $route->view() method to $route->layout() for consistency.

2.4.0

This update focuses on improving the pagination feature of page extension. $pager->next, $pager->parent and $pager->prev will now return a Page instance or null. This allows us to get richer data easily from the previous and next page property such as to retrieve title, description and image thumbnail to be displayed in the previous and next page navigation HTML.

  • Improved HTML output generated by To::excerpt() method.
  • $pager->next, $pager->parent and $pager->prev are now return a Page instance or null.

2.3.2

  • Added drop helper function.
  • Improved Path methods to allow null values.
  • Updated Parsedown Extra to version 0.8.0.

2.3.1

  • Bug fixes and improvements for the YAML extension.
  • Prefers HTTP/2 header style for both request and response (#89)

2.3.0

This update focuses on improving the token feature so that it is not too strict. We need to give other extension opportunities to load the current page for certain purposes without having to change the current token.

  • Added $deep option for From::HTML() with default value set to false to prevent double encode HTML special characters.
  • Added X-Requested-With header field to fetch() with default value set to CURL to let the client to know that the request is not came from a normal web browser (#86)
  • Fixed double encode on HTML attribute’s value caused by the HTML class (#85)
  • Fixed form extension bug that caused the comment duplicate checker to fails to work.
  • Fixed layout extension bug that does not capture the custom attributes added to the asset path that is relative to the layout folder.
  • Improved alert counter and serializer. Counting alert messages or converting them into a JSON string will not clear the alert session.
  • Improved hook remover. It is now possible to remove a hook function from closures as long as you store the function closure into a variable. You can then remove the hook function using the variable as a reference.
  • Improved HTTP response headers API. They are now case-insensitive.
  • Improved markdown extension. It is now possible to generate HTML <figure> element automatically from every image that appears alone in a paragraph.
  • Improved token mechanism. Added $for parameter for Guard::token() to set delay time for the token to refresh. The default value is one minute. Previously, every token will be refreshed on every page visits. This causes several obstacles if some extensions require to reload the page to build the cache (even if it is only to load pages in the background) or to prepare it to load the next page via the HTML5 prefetch feature.
  • Removed State::over() method.
  • Removed automatic paragraph tags in page description data for consistency with other page data such as the title data. If I had to be consistent, when the description data is required to be wrapped in paragraph tags, then the title data should also be wrapped in heading tags. But it doesn’t (#87)
  • Renamed Cache::expire() to Cache::stale() for more semantic method naming (#84)
  • Renamed Route::over() to Route::hit() to make it in-line with Cache::hit() (#83)

2.2.2

This update focuses on stabilizing the URL class. In this version, you can use the class to parse all types of URLs, not only internal URLs but also external URLs. Mecha has its own specifications regarding URLs, and is a bit different from the native PHP parse_url function. One of them is the presence of d and i properties. You can learn more about this on the URL reference page.

  • Added optional $d and $i parameter to the URL class constructor.
  • Fixed $lot parameter applied to Route::fire() does not give any effect.

2.2.1

  • Added $as parameter to copy and move methods of File and Folder class.
  • Fixed send function not sending HTML email.
  • Small bug fixes for the let hook.

2.2.0

Compatible with PHP 7.1.0 and above. Mecha uses Closure::fromCallable() method (which is only available in PHP version 7.1.0 and above) to convert named function into closures, so that we can pass $this reference from another class instance to the function body even if it’s a named function. The ?? operator becomes a must-have feature in this version as we no longer use extra $fail parameter on certain class methods to set default values.

  • Added ability to read special file named task.php.
  • Added classes: Client, Files, Folders, Layout, Pager\Page, Pager\Pages, Pages, Post, Server, SGML.
  • Added more static functions: abort, alert, anemon, any, c2f, cache, check, concat, content, cookie, eq, exist, extend, f2c, f2p, fetch, find, fire, ge, get, gt, has, hook, is, kick, le, let, lt, map, mecha, ne, not, open, p2f, page, pages, pluck, route, send, session, set, shake, state, step, stream, test, token.
  • Added page conditional statement features.
  • Moved YAML parser feature to a separate YAML extension.
  • Moved class Page and Pager to a separate Page extension.
  • Moved configuration file from .\lot\extend\:extension\state\config.php to .\lot\x\:extension\state.php.
  • Moved configuration file from .\lot\shield\:layout\state\config.php to .\lot\layout\state.php.
  • Moved configuration file from .\lot\state\config.php to .\state.php.
  • Moved search functionality to a separate Search extension.
  • Now you can call page properties via $this property inside the hook function, either as a named function or as an anonymous function.
  • Removed ability to read special file named __index.php and index__.php. Only index.php file that will be read automatically.
  • Removed automatic constant creation for every folder name in the .\lot directory.
  • Removed classes: Extend Elevator, Form, Mecha, Plugin, Shield, Union.
  • Removed language and layout switcher features. Now we no longer have the ability to change themes through configuration files, and therefore there will only be one theme on every website built with Mecha.
  • Removed plugin feature. There are no such thing called “plugin” in this version. They are now simply called “extension”.
  • Renamed .\lot\extend directory address to .\lot\x.
  • Renamed class Config to State.
  • Renamed class Date to Time.
  • Renamed class Guardian to Guard.
  • Renamed class Message to Alert.
  • Renamed the X constant to P. “P” stands for “Placeholder”.
  • The “Set, Get and Reset” method naming standard has now been changed to “Set, Get and Let”.
  • Use null value everywhere as the default value for all inaccessible data. From now on, use the ?? operator to determine alternative value.
  • $pages variable is now a generator. Every page data in it will be loaded only if you iterate over the generator.

2.0.0

Compatible with PHP 5.3.6 and above.

  • Refactor.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].