Elefant, the refreshingly simple PHP CMS and web framework.
PHP JavaScript HTML CSS Other
Clone or download
Failed to load latest commit information.
apps User ID wasn't always being set in HMAC verifier output Jun 18, 2018
cache Added styling and hover title effect on preview exit icon May 28, 2013
conf Updated version to 2.0.3 Jan 25, 2018
files Merging slideshow upgrade to cycle2 (pr #235) Jan 13, 2015
install Remove requirement that css folder exist Sep 30, 2015
js Fixed client-side validation on filetype Nov 23, 2017
lang Web server writable folders permissions updated to 775. May 27, 2016
layouts Web server writable folders permissions updated to 775. May 27, 2016
lib Allow $page->add_style with ?v= appended to stylesheet links Jun 15, 2018
tests Swapped any reference of HTTP_HOST for Appconf::admin ('Site Settings… Sep 7, 2016
.gitattributes Updating permission defaults on all files Mar 28, 2013
.gitignore include strings with parameters to translation index May 6, 2013
.htaccess Updating permission defaults on all files Mar 28, 2013
.travis.yml Use travis-ci container-based infrastructure Jul 15, 2015
LICENSE Updating permission defaults on all files Mar 28, 2013
README.md Merge branch master into async-wrapper Jul 2, 2015
composer.json Updated version in composer.json Apr 6, 2017
elefant Merge branch master into async-wrapper Jul 2, 2015
favicon.ico Updating permission defaults on all files Mar 28, 2013
index.php Removed PHP closing tags Oct 31, 2014
nginx.conf Current-user header has been removed. Can be implemented as app hook … Dec 12, 2013
phpunit.xml.dist Added apps to phpunit config Mar 22, 2013
robots.txt Removed over-eager robots.txt entries to improve crawling and SEO Sep 21, 2015


Elefant CMS

Elefant is a refreshingly simple PHP content management system and web framework. Elefant is a fast, lean tool for building everything from simple websites to complete web applications.

![Gitter](https://badges.gitter.im/Join Chat.svg)

Click here to lend your support to: Elefant CMS and make a donation at www.pledgie.com !

Installation help & documentation

Elefant has extensive documentation including installation instructions, user manual, designer guides, and developer tutorials here:

You can also find help on our community forum here:

Built for designers

Compiled, ultra-fast templates

Elefant compiles your templates into secure, readable PHP code, so rendering is as fast as possible and also takes advantage of bytecode caching (e.g., APC).

Dead simple, concise template tags

Familiar syntax to other template languages, with some added conveniences for dynamic embeds and internationalization.

Clean, easy to use site editor for your users

Elefant comes out of the box with a full-featured CMS for your users. You can even white label it.

Syntax highlighted template and CSS editor

Sophisticated in-browser editing with highlights and references at your finger tips.

Live preview while editing templates and CSS

Preview in real time as you make changes. Or if you prefer, edit files directly with your editor of choice.

Integrates with 960 grid system and jQuery

Or any other CSS grid/layout system, giving you complete control over your designs. Theme builder also provides defaults for Twitter Bootstrap.

Built for developers

Quickly built custom apps

With all the tools you need, and a very low learning curve, Elefant gets you writing code quickly.

Extensively documented

Including full API reference, user manual, tutorials, and much more.

Strong security by default

Flexible form building, input validation, and automatic prevention of XSS, SQL injection, CSRF, and other types of attacks.

Very fast and low memory

Elefant uses less memory than any of the major frameworks, so you can serve more visitors with the same resources. Benchmarks: MVC layer, database access, and template rendering.

Solid debugging tools

Debug mode prints full traces with highlighted source code and variable state to help you fix bugs faster.

Minimalist HMVC/Model2 architecture

Elefant takes a unique but proven approach that helps minimize boilerplate without sacrificing code organization as your project grows.

Shared apps to save you time

From blogs to user management, events to search, Elefant saves you time not reinventing the wheel with high quality shared apps.

Thoroughly unit-tested

Elefant's core framework is covered by extensive unit tests, ensuring a stable base to build on.


Elefant apps are automatically i18n aware, with built-in multilingual capabilities and locale awareness.

More developer goodness

Elefant builds on over 12 years of PHP experience, and aims to simplify rapid PHP development again. As such, Elefant takes into consideration all the little details to help you work faster and better:

Try it out

Download the latest release or try the online demo.


Q. Do you know you spelt Elephant wrong?

A. This was my attempt at being hip and cool. No good?

Q. Isn't Elefant a bit of an oxymoron for a slim framework?

A. Why, yes. Yes it is.