Download the PHP package salesfusion-dev/slim without Composer
On this page you can find all versions of the php package salesfusion-dev/slim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salesfusion-dev/slim
More information about salesfusion-dev/slim
Files in salesfusion-dev/slim
Package slim
Short Description Slim Framework, a PHP micro framework
License
Homepage http://github.com/codeguy/Slim
Informations about the package slim
Slim Framework
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. Slim is easy to use for both beginners and professionals. Slim favors cleanliness over terseness and common cases over edge cases. Its interface is simple, intuitive, and extensively documented — both online and in the code itself. Thank you for choosing the Slim Framework for your next project. I think you're going to love it.
Features
- Powerful router
- Standard and custom HTTP methods
- Route parameters with wildcards and conditions
- Route redirect, halt, and pass
- Route middleware
- Resource Locator and DI container
- Template rendering with custom views
- Flash messages
- Encrypt cookie data
- HTTP caching
- Logging with custom log writers
- Error handling and debugging
- Middleware and hook architecture
- Simple configuration
Getting Started
Install
You may install the Slim Framework with Composer (recommended) or manually.
System Requirements
You need PHP >= 5.3.0. If you use encrypted cookies, you'll also need the mcrypt
extension.
Hello World Tutorial
Instantiate a Slim application:
Define a HTTP GET route:
Run the Slim application:
Setup your web server
Apache
Ensure the .htaccess
and index.php
files are in the same public-accessible directory. The .htaccess
file
should contain this code:
Additionally, make sure your virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used:
Nginx
The nginx configuration file should contain this code (along with other settings you may need) in your location
block:
This assumes that Slim's index.php
is in the root folder of your project (www root).
HipHop Virtual Machine for PHP
Your HipHop Virtual Machine configuration file should contain this code (along with other settings you may need).
Be sure you change the ServerRoot
setting to point to your Slim app's document root directory.
lighttpd
Your lighttpd configuration file should contain this code (along with other settings you may need). This code requires lighttpd >= 1.4.24.
This assumes that Slim's index.php
is in the root folder of your project (www root).
IIS
Ensure the Web.config
and index.php
files are in the same public-accessible directory. The Web.config
file should contain this code:
Google App Engine
Two steps are required to successfully run your Slim application on Google App Engine. First, ensure the app.yaml
file includes a default handler to index.php
:
Next, edit your index.php
file so Slim knows about the incoming URI:
Documentation
http://docs.slimframework.com/
How to Contribute
NOTE: We are only accepting security fixes for Slim 2 (master branch). All development is concentrated on Slim 3 which is on the develop branch.
Pull Requests
- Fork the Slim Framework repository
- Create a new branch for each feature or improvement
- Send a pull request from each feature branch to the develop branch
It is very important to separate new features or improvements into separate feature branches, and to send a pull request for each branch. This allows me to review and pull in new features or improvements individually.
Style Guide
All pull requests must adhere to the PSR-2 standard.
Unit Testing
All pull requests must be accompanied by passing unit tests and complete code coverage. The Slim Framework uses
phpunit
for testing.
Community
Forum and Knowledgebase
Visit Slim's official forum and knowledge base at http://help.slimframework.com where you can find announcements, chat with fellow Slim users, ask questions, help others, or show off your cool Slim Framework apps.
Follow @slimphp on Twitter to receive news and updates about the framework.
Author
The Slim Framework is created and maintained by Josh Lockhart. Josh is a senior web developer at New Media Campaigns. Josh also created and maintains PHP: The Right Way, a popular movement in the PHP community to introduce new PHP programmers to best practices and good information.
License
The Slim Framework is released under the MIT public license.