News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

New Media Campaigns:
An Interview With the Founder of the Slim Framework for PHP
February 07, 2014 @ 11:55:29

On the New Media Campaigns site today they've posted an interview they did with Josh Lockhart, the lead developer behind the Slim PHP framework project. In it they talk some about his own experience and the framework, both past and future plans.

We have long been proponents of team members spending a portion of their time at NMC to work on side projects they're passionate about. The policy has been a great success, and we make many of the projects available to other developers, designers, and marketers. [...] One of the most successful projects is the Slim framework for PHP built by Josh. Josh noticed a void in PHP and decided to fill it by building his own framework. He collaborated not only with NMC'ers but also with programmers around the world to build Slim.

They start by getting to know Josh a bit, talking about his background in PHP and the origins of the Slim framework. They move on to talk specifically about the framework and what originally pushed him to create it. The interview also talks about how his work has affected both the community as a whole and his own current work.

He also offers two pieces of advice for beginning PHP developers:

For developers new to PHP, I encourage you to spend more time learning the HTTP protocol rather than focus too much on learning the PHP language. Obviously, you have to know PHP, but don't spend all your time doing so. [...] Also, join your local PHP User Group. Believe it or not, there are likely lots of fellow PHP developers nearby. If not, you can join the online Nomad PHP User Group.
0 comments voice your opinion now!
interview community slim framework joshlockhart

Link: http://www.newmediacampaigns.com/blog/an-interview-with-the-founder-of-slim-php-framework-our-josh-lockhart

7PHP.com:
Slim PHP Micro Framework Through The Lens Of Jeremy Kendall
December 09, 2013 @ 09:44:13

On 7PHP.com today there's an interview with PHP community member Jeremy Kendall sharing some of his opinions about the Slim Framework.

Have you ever tried to use Slim PHP micro framework? Or you are in a confusion whether to choose it or not? Well, today I bring you a small chat with Jeremy Kendall [@jeremykendall] who's been using Slim PHP for quite some time now and he is even using it on his side open-source project as you will discover. Jeremy has previously been giving a nice talk about Slim PHP Microframework last year in November at Tech Camp Memphis, you can view the Youtube video here! Also worth noting, he has recently delivered another Slim talk at the recent php[tek]2013, you can view his slideshare talk here.

Jeremy talks some about his background with the Slim framework and his overall thoughts on it as a microframework. He shares some of the things he thinks the framework could work on in the future and places where "it rocks" and does it all right. There's a brief comparison of Slim versus Silex and Jeremy's choice of it over something like Zend Framework of Symfony.

0 comments voice your opinion now!
slim framework microframework jeremykendall interview community

Link: http://7php.com/slim-php-micro-framework-jeremy-kendall-opinion/

Lorna Mitchell:
OAuth Middleware for Slim
October 09, 2013 @ 11:53:37

Lorna Mitchell has posted about some middleware for the popular Slim (micro)framework that helps with OAuth functionality.

OAuth can be anything you want it to be, the standards are lax and give you plenty of room for getting the right implementation for your system. However you proceed, though, you'll need to check an access token on every request - and in a Slim application, a middleware can help enormously since it hooks in to every request by design. I've recently implemented this and thought I would share.

She's created a basic middleware component that can be easily dropped into the framework to handle the checking of the tokens via an "AuthService" object. She also includes a brief snippet of how she generates the codes, combining the output of bin2hex and openssl_random_pseudo_bytes.

0 comments voice your opinion now!
oauth middleware slim access token validation generate

Link: http://www.lornajane.net/posts/2013/oauth-middleware-for-slim

Systems Architect:
API-based Web Application with Backbone, Require.js and Slim framework
September 26, 2013 @ 11:25:32

On the Systems Architect blog there's a new post from Lukasz Kujawa about creating a simple API-based application combining Slim, Require.js and Backbone. The result is a single-page application that displays a template and a set of links pulled from the backend.

A single-page application (SPA) was something I've been exploring for the last few months. I always liked the idea of moving certain responsibilities to the client's side. After all, why would you like to waste server's RAM/CPU to buil a HTML page (and pay for a transfer to deliver it) when a web browser is perfectly capable of doing that on its own?

He's posted the full example to Github, but he does walk through all the code showing how the parts fit together. He starts with the HTML5 template and Javascript side of things, making a simple Backbone router and a "create" route. The views are rendered via the Lo-Dash templating and injected into the page.

As you can see it's all quite simple. The only problem is that you have to embrace multiple JavaScript frameworks at once but the boilerplate makes it much easier. What I really like about this setup is the structure. It's similar to how things are done in the back-end and it should be fine even with big applications.
0 comments voice your opinion now!
requirejs backbone slim framework tutorial api singlepageapp

Link: http://systemsarchitect.net/api-based-web-application-with-backbone-require-js-and-slimmvc-framework

PHPMaster.com:
Using Facebook's Realtime Updates and Subscription API
August 19, 2013 @ 11:35:47

On PHPMaster.com there's a new tutorial showing you how to use the Facebook API and get real time subscription information and updates using this code as a base.

Facebook's real-time updates allow us to declare our interest in certain information about our users and have Facebook notify us when it changes instead of us continually querying the API. [...] There are of course other uses for real-time updates - and indeed we'll take a look at one in this article: an example application which emails people when others "unfriend" them. (Actually that's not strictly true - it tells you when someone is no longer your "friend" regardless of who did the unfriending.)

He helps you get everything you'll need installed (via Composer) including the Facebook SDK, PHPMailer for emails and Underscore for output handling. The sample interface uses a Slim-based structure (a PHP microframework) to make a callback URL that the Facebook application uses for it's real-time notifications. There's also an endpoint that's called when people allow the application access to their accounts, complete with the redirect URL. They show you how to handle the incoming JSON message from Facebook and how to create the email contents and send it out.

0 comments voice your opinion now!
realtime subscription api notifications tutorial facebook slim

Link: http://phpmaster.com/using-facebooks-realtime-updates-and-subscription-api

PHPMaster.com:
Create a Podcast Feed with PHP
August 14, 2013 @ 11:54:48

On PHPMaster.com there's a tutorial posted that walks you through the creation of a podcast feed based around a Slim framework application and this skeleton application.

In this article, I'll demonstrate how to use PHP to generate a podcast feed. We'll create a simple administrative interface to configure the podcast metadata, add and list episodes, and then go through the generation of the podcast feed itself (which is simply an RSS document).

He walks you through the full process - setting up the application, creating the various management pages and making the associated views to add more information to the feed. He also includes the code/markup you'll need for adding episodes and generating the actual XML RSS feed output. You can download the full app if you want to see how it's all laid out.

0 comments voice your opinion now!
podcast tutorial feed id3 tag slim framework rss

Link: http://phpmaster.com/create-a-podcast-feed-with-php

CodeForest.com:
Creating simple tasks app with Backbone.js and Slim micro framework (part 1)
June 25, 2013 @ 11:52:44

New on CodeForest.com today, Luka Peharda has posted the first part of a series that combines the Slim microframework with backbone.js to make a simple tasks (to-do) application.

The app in this tutorial will be called "Tasks". I know, right? Super creative. This first article will give an introduction to the technologies and the idea of the series. Also, we'll cover project structure and entire PHP side of the story. In second article we'll cover Backbone.js side of the story and create simple tasks application which we'll refine and upgrade in later articles (third and fourth one).

They introduce the two technologies (briefly) and get right in to the directory and database structure they'll be using. They use the NotORM library for accessing the database. Code is included showing the routes for getting, adding, updating and deleting tasks out of the database.

0 comments voice your opinion now!
tutorial slim microframework backbonejs tasks todo application

Link: http://www.codeforest.net/creating-simple-tasks-app-with-backbone-js-and-slim-micro-framework-part-1

NetTuts.com:
Taming Slim 2.0
April 02, 2013 @ 09:17:11

On NetTuts.com today there's a new tutorial posted about "taming" Slim 2.0, the latest version of the popular PHP microframework. They look at application structure and share some tips to using this update.

Slim is a lightweight framework that packs a lot of punch for its tiny footprint. It has an incredible routing system, and offers a solid base to work from without getting in your way. Let me show you! But that's not to say that Slim doesn't has some issues; it's one-file setup becomes cluttered as your application grows. In this article, we'll review how to structure a Slim application to not only sustain, but improve its functionality and keep things neat and systematic.

He starts with an example of "vanilla Slim" and looks some at what's happening behind the scenes in the routing engine. They then give you a step by step installation and usage guide including updating the router to use class files. An example controller is included as well as some basic error handling using a Twig template for use across the application.

0 comments voice your opinion now!
slim microframework tutorial introduction class controller router error handling


PHPMaster.com:
Working with Slim Middleware
February 21, 2013 @ 09:23:24

On PHPMaster.com Timothy Boronczyk has written up a tutorial about using the Slim microframework as a sort of "middleware" in your application - a wrapper around other functionality with an easier to use interface.

Slim is a microframework that offers routing capabilities for easily creating small PHP applications. But an interesting, and powerful, feature is its concept of Middleware. [...] I've found middleware to be an eloquent solution for implementing various filter-like services in a Slim app, such as authentication and caching. In this article I'll explain how middleware works and share with you a simple cache example that highlights how you can implement your own custom middleware.

He talks about what "middleware" is (complete with illustration) and how Slim can be used as a layer in the middleware stack. His example is a caching layer, based on Slim, that takes a request, checks the cache for it and returns it if it exists. If not, it saves the content to a database. He also includes code examples of how to use the "add" method to introduce your middleware libraries into the Slim application.

If you'd like more examples, the Slim project has several middleware examples provided in their "extras" github repository.

0 comments voice your opinion now!
slim middleware tutorial cache layer microsframework


IBM developerWorks:
Create REST applications with the Slim micro-framework
December 17, 2012 @ 12:56:24

On the IBM developerWorks site there's a new tutorial posted walking you through the process of creating a REST application with Slim, a popular microframework for PHP.

In this article, I introduce you to Slim, a PHP micro-framework that's designed for rapid development of web applications and APIs. Don't be fooled by the name: Slim comes with a sophisticated URL router and support for page templates, flash messages, encrypted cookies, and middleware. It's also extremely easy to understand and use, and it comes with great documentation and an enthusiastic developer community.

They start off by defining REST in terms of its usual four "verbs" - GET, POST, PUT and DELETE - and the conventions of the types of actions for each. Once you get the framework installed (via Composer) they help you create a sample database with an "articles" table and some sample data your service will work with. They go through each of the "verbs" and include code showing how to respond to the requests for each, including some exceptions for when things go wrong. There's also a bit about adding authentication "middleware" to the process - a hook to validate a user key as a part of the routing process. They finish things off by showing how to support multiple response formats and like XML and JSON based on the requested media type.

0 comments voice your opinion now!
slim microframework tutorial rest api interface



Community Events











Don't see your event here?
Let us know!


introduction package install opinion unittest security code overview symfony2 language composer hhvm application hack framework facebook release series podcast component

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework