Git Product home page Git Product logo

300cms's Introduction

What is 300CMS?

300CMS is a CMS written in PHP which is exactly 300 bytes (except for the Markdown parser) and does not use a database. It is easy to set up, and content is added as plain text files in Markdown format.

How do I install it?

Installing is as easy as putting the required files on a web server.

How do I use it?

300CMS consists of 7 files:

index.php
m.php
plug.php
pages [DIR]
--404.txt
--index.txt
theme [DIR]
--style.css
plugins [DIR]
theme.html
  • The pages directory contains all pages, in Markdown format with the .txt file extension.
  • The theme directory contains all files the theme needs.
  • The plugins directory contains all plugins.
  • theme.html is the main theme file. Somewhere in this file there is {{{CONTENT}}} which gets replaced by the parsed Markdown.

Just make as much pages as you want, by putting them into the pages directory. The page you want to view is given with the p query string parameter, e.g. http://www.example.com/?p=foo. You could use a .htaccess file to rewrite this if you like.

Plugins

Plugins are also available, for example, a plugin that allows you to edit stuff. Plugins are installed in the plugins directory.

Sys. reqs.

Requirement Minimum
PHP version PHP 4.3.0 ≥
Free disk space 93 KB ≥

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.