2017 © Pedro Peláez

library sodapop

An easy to use MVC Framework



An easy to use MVC Framework

  • Tuesday, June 16, 2015
  • by 18thstreetmike
  • Repository
  • 2 Watchers
  • 3 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown


The Sodapop Framework

Sodapop is a simple PHP MVC framework. You can read more about it at http://sodapop.restlessdev.com., (*1)

Its syntax should be immediately familiar to anyone who has used Ruby on Rails, Zend Framework, or other Model-View-Controller frameworks., (*2)

A Quick Example

A Controller:, (*3)

request->slug); // or $_REQUEST['slug']

        // assign it to the view
        $this->view->post = $post;

A [Layout] [2]:

        Blog: = $this->post->post_title ?></title>
       <?= $this->viewContent ?>

A View Template:, (*4)

    <h2><?= $this->post->post_title ?></h2>
    <div class="post-body">
        <?= $this->post->post_body ?>

A Model: In typical CRUD-type operations, Sodapop doesn't require model classes to be explicitly defined. See http://sodapop.restlessdev.com/documentation/models for more details., (*5)

Why Use Sodapop?

You have many choices in frameworks; why should you consider this one?, (*6)

Sodapop has several core values that guide its development., (*7)

  1. Code should be well-organized; everything should be easily discoverable if one knows the basics of the framework.
  2. Boilerplate code is unnecessary. Let computers handle the repetitive stuff, they enjoy it more.
  3. Convention over configuration. You shouldn't have to state everything explicitly, but you can override defaults.
  4. A framework should get out of the way and not make you change your style.

It has several features that support these values., (*8)

  • The directory structure is straightforward and consistent, and the (default) naming conventions make it easy to find things.
  • Any changes to the routing system happen in a single file, routes.json, so they will be easy to manage.
  • If one uses its default naming conventions (plural, underscore-separated table names and singular, camelCapped class names) for models, you don't need to declare classes.
  • The framework lets you use PHP's built-in superglobals or its own wrappers, and doesn't force you to learn how to do everything in its own way.
  • It is being developed from the ground up, slowly. It values consistency over feature-itis.


One of the most important (and unique) features of Sodapop is that it is totally themeable. It allows you to place UI-oriented code (static files, view, and layout templates) in separate named theme directories and switch between them with a configuration option or programmatically. It also has a hostname-based configuration, making it perfect for hosted solutions in which each customer will need to have a custom front-end site with a similar backend., (*9)

Please see http://sodapop.restlessdev.com/documentation/themes for more detail., (*10)

Getting Started

If Sodapop sounds interesting to you, please head over to the Getting Started page for instructions on next steps., (*11)

The Versions

16/06 2015


9999999-dev http://sodapop.restlessdev.com

An easy to use MVC Framework

  Sources   Download


The Requires

  • php >=5.3.0


framework mvc