Giter Club home page Giter Club logo

villain's Introduction

Villain: It's not a bad idea, it's a BAAAAD idea.

Villain is a PHP Content Management Framework (CMF) developed to be feature rich, high performance, and easy to extend.

Quickstart

To fetch and install Villain, do the following:

$ git clone git://github.com/Masterminds/Villain.git
$ cd Villain
$ ./fort --config config/install.php install

At this point, Villain/src will contain your new website.

What Is Villain?

Villain is a content management framework -- a tool designed to help PHP developers quickly build a CMS system individualized to their needs. It has been designed to be fast, scalable, and easy to extend.

Prerequisites

Villain REQUIRES the following:

  • PHP 5.3+
  • PECL MongoDB driver (pecl install mongodb)
  • A recent version of MongoDB

Villain SUGGESTS the following:

  • phing
  • PHPUnit
  • doxygen 1.7.3+
  • Apache 2+ with mod_php or another comparable webserver configuration

Building a CMS with Villain

To build a CMS from Villain, you probably want to do the following:

  • Install Villain
  • Install whatever Bundles you need
  • Beginning with src/config/commands.php, customize your site
  • Develop your own bundles (try ./fort @create-bundle FOO to get started)
  • Test and deploy.

Key Concepts

  • Bundle: Roughly speaking, bundles are "plugins" or "modules" for Villain. A bundle can provide commands, request implementations, assets like CSS, images, and JavaScript, and supporting files.
  • Chain of Command: Villain maps a REQUEST to a CHAIN OF COMMANDS (and then maps URLs to requests). When Villain receives a request, it processes a series of commands in sequence. When you build your CMS with Villain, you will build your own chains.
  • commands.php: The main configuration file for Villain. Among other things, it maps requests to chains of commands.
  • fort: Fort is the command-line runner that Villain uses.
  • Fortissimo: Villain is built on the Fortissimo framework. Fortissimo is a lightweight scalable PHP framework.
  • Storable/Storage: Villain uses a very lightweight intermediate layer to translate objects into and out of MongoDB. The Storable system provides that translation system. See src/core/Villain/Storage.

villain's People

Contributors

mattfarina avatar technosophos avatar

Watchers

 avatar

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.