Download the PHP package slimmy/framework without Composer

On this page you can find all versions of the php package slimmy/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package framework

Slimmy (mini) Framework

slimmy-framework

Mini (H)MVC framework based on Slim micro framework combined with illuminate/database Laravel for model and Twig template engine for view.

It is just instant way to create Slim project with simple (H)MVC architecture.

Indonesian? nih README versi Indonesianya

Features

Installation

First, make sure you have composer installed on your machine, and follow steps below:

After finish installation, open localhost/yourprojectdirname/public in your browser.

Basic Guides

Controller

Controller is a Class that grouping some actions/methods in your application, and these actions/methods can be called via Route. Controller files located in app/controllers.

For example, you want to create some actions to manage user

And you can call these actions in your route file by:

Model

Models are PHP classes that are designed to simplify interact with your table in your database. Model files located in app/models directory. To make your model work, you must create at least one database connections on your app/configs/database.php file.

For example, you have users table on your database, so the User model file might look like this:

this framework using Eloquent laravel for Model, so you can read full documentation about using Eloquent here

View

View basically is a file that contain HTML, css or js code that rendered to browser as a web page. View files by default is located on app/views directory. This framework use twig as View, so you should use .twig as extension.

Rendering a view in controller

Rendering a view by Closure in Route

For documentation about twig syntax, you can find it in twig official site here

Working with module

Module basically is a directory that contain their own controllers, models, and views files. Module used if you want to distribute tasks with your development team, crew A focused on module User, crew B focused on module Post, etc. And it can also simplify to migrate a part of your slimmy application to another slimmy application.

by default modules are located on app/modules.

Module Directory Structure

Basically, module structure might look like this

Call Module Controller action/method from Route

Rendering Module View

Rendering module view is little bit different, because view in the module have it's own namespace. So, you should call these views in format @[ModuleName]/[viewpath/viewname.twig].

For example, if you want render form-edit-user.twig in User module.

More from official documentation


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.10
rakit/slimmy Version 0.*
illuminate/validation Version 4.1.*
itsgoingd/slim-facades Version 1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package slimmy/framework contains the following files

Loading the files please wait ....