Skip to main content

21 posts tagged with "Tutorial"

How-to guides and tutorials

View All Tags

Lumen

· 3 min read
Slim Framework Team
PHP Micro Framework

Lumen happened. It's a shiny new micro-framework from Taylor Otwell, and it joins the Laravel family today. It looks to be a pretty nice framework, and it shares many of the same features and goals as Slim 3.0. I'm sure this raises a few question about Slim's future roadmap.

What's up with version 3.0?

· 6 min read
Slim Framework Team
PHP Micro Framework

It's coming. I promise. As many of you know, I recently finished writing a new book for O'Reilly Media—Modern PHP. I'm excited that my book is nearing publication and should be on bookshelves within a month or two. Unfortunately, writing a book is a time-consuming task. I also have a 9 to 5 day job. Life gets in the way sometimes. Excuses, excuses... I know :) I now have free time to work on Slim again. So what's going on? A lot.

Slim Framework Version 2.3.0

· 6 min read
Slim Framework Team
PHP Micro Framework

The Slim Framework contains many new and helpful features in version 2.3.0. It is backwards compatible with the previous version. While I update the official documentation, here are some tips to help you get started with Slim’s new features.

How to use Laravel's Eloquent ORM with the Slim Framework

· 3 min read
Slim Framework Team
PHP Micro Framework

I’m building a small Slim Framework application at New Media Campaigns. Because this application is for internal use, I figured I’d learn something new while building it. Even though the database schema is pretty simple, I’ve heard great things about Laravel — a full-stack framework from Taylor Otwell — and how many of its components are available as separate Composer packages on Packagist.

How to run a Slim app on PHPFog

· One min read
Slim Framework Team
PHP Micro Framework

Many Slim Framework users are turning to PHPFog — a leader among a growing field of PHP PaaS providers — to host their Slim Framework PHP web applications. By default, a Slim app will not run on PHPFog. Why not? PHPFog’s backend infrastructure relies on the nginx HTTP Proxy Module to communicate between backend tiers; the nginx HTTP Proxy Module speaks HTTP/1.0 while Slim speaks HTTP/1.1. Fear not, there’s an easy workaround. To run a Slim app on PHPFog, you must tell your Slim app to speak HTTP/1.0. You can do this when you instantiate your Slim app, like this:

How to organize a large Slim Framework application

· 2 min read
Slim Framework Team
PHP Micro Framework

The Slim Micro Framework is a micro framework that enables developers to quickly write RESTful web applications and APIs. I emphasize micro because Slim is just that — a lightweight and nimble PHP framework used to build smaller web applications and APIs. Unlike CodeIgniter and Symfony (excellent frameworks created by EllisLab and Sensio Labs, respectively), Slim forgoes controllers and abstract components for simplicity and ease-of-use.

Say Hello World with Slim

· 2 min read
Slim Framework Team
PHP Micro Framework

This tutorial demonstrates the typical process for writing a Slim Framework application. The Slim Framework uses the front controller pattern to send all HTTP requests through a single file — usually index.php. By default, Slim comes with a .htaccess file for use with the Apache web server. You'll typically initialize your app, define your routes, and run your app in the ``index.php`.