News Feed
Sections




News Archive
feed this:

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

Hari KT:
Aura Input Form Inside Slim Framework
September 08, 2014 @ 10:55:13

Hari KT has a new post to his site today showing how you can integrate the Aura PHP components into a Slim framework application for input handling, like from a form. Aura PHP is a set of decoupled components for things like CLI handling, dependency injection and SQL requests (among others).

Rob Allen wrote about Integrating ZF2 forms into Slim. I did write how you can use Aura.Input and Aura.Html to create standalone form for PHP. This time I felt I should write about integrating aura input inside Slim.

He includes the Composer configuration to install the HTML and Input components as well as an up-to-date version of the Slim framework. Code showing how to create the form class (a "Contact form") is included, showing both the creation of the elements and the filtering/validation checks put on each. He shows how the Slim routes would handle the request as well as how the view processes the request and displays the form via a helper. You can get the full working code in this repository over on GitHub.

0 comments voice your opinion now!
auraphp framework slim form input html tutorial

Link: http://harikt.com/blog/2014/09/02/aura-input-form-inside-slim-framework/

Rob Allen:
Integrating ZF2 forms into Slim
August 26, 2014 @ 09:40:47

Rob Allen has a helpful post if you've ever wanted to take advantage of the simplicity of the Slim framework and the power of the Zend Framework 2 forms. In this latest post he walks you through the process of setting it all up and using the ZF2 elements outside of the main framework.

Let's say that you want to use Zend Framework 2′s Form component outside of ZF2 itself. In this case, a Slim application. It turns out that Composer makes this quite easy, though there's quite a lot of code involved, so this is a long article. Start with a really simple Slim Application...

His simple Slim application - just one route - handles both the GET and POST actions and uses several ZF2 components besides just the Form (dependencies mostly). He shows you the updates and additions you'll need to make to the service manager configuration and how to set up some custom validation and the form object in the controller. His example form only has two elements, an email field and a submit button and validation is done on the email address when it's submitted. Finally he includes the View object, extended from Slim's that combines some of the ZF2 and Slim handling to correctly render the form.

0 comments voice your opinion now!
form integration slim zendframework2 tutorial validation

Link: http://akrabat.com/zend-framework-2/integrating-zf2-forms-into-slim/

PHP Town Hall:
Episode 27 Josh Lockhart and Jeremy Mikola
June 30, 2014 @ 09:30:35

The PHP Town Hall podcast is back with their latest episode, number 27, featuring two special guests: Jeremy Mikola and Josh Lockhart.

This episode is a long one, but we are back to improved audio and the video is not just one dude eating pizza for an hour. Josh Lockhart of PHP The Right Way and Slim fame, and Jeremy Mikola who is well known for banging on about clouds and playing magic the gathering. Oh, he also works for MongoDB.

The episode's discussion includes a wide range of topics (and plenty of rambling) about things like plans for Slim 3, Silex vs Slim, PHP The Right Way, Illuminate/Pagination and difficulties around pull requests. You can listen to this latest episode either through the in-page player, by downloading the mp3 or you can watch the video of the live Google Hangout recording.

0 comments voice your opinion now!
phptownhall ep27 jeremymikola joshlockhart slim phptherightway illuminate pullrequest

Link: http://phptownhall.com//blog/2014/06/29/episode-27-foo/

7PHP.com:
A Comprehensive Interview About Slim The Micro PHP Framework
June 24, 2014 @ 10:42:35

On the 7PHP.com site today Khayrattee Wassem has posted the latest in his PHP community interview series. This time it's with Josh Lockhart, creator of the Slim framework, talking about his experiences as a developer and in working on the open source project. This time the focus is more on the framework than Josh himself, though.

Last time, I've introduced the Captain America of The PHP Ecosystem to you, aka Josh Lockhart, via a 7PHP 'PHP Interview series to help drive thy PHP aspirations'. This time we go a little bit further with Josh to find out 'as much as we can' about his little masterpiece, I named Slim Framework - the PHP micro framework. Let's get started..

Josh answers questions about:

  • How the framework got started and what was the motivation behind it
  • What need the project tries to solve
  • Why someone might choose Slim over other frameworks
  • How many developers are involved in the project
  • What's coming in Slim v3

There's lots more too, so be sure to check out the full post for the answers to these and other interesting (and enlightening) questions.

0 comments voice your opinion now!
7php community interview joshlockhart slim framework

Link: http://7php.com/slim-php-framework-interview/

7PHP.com:
Josh Lockhart - Find Good Online Resources And Communities & Use Them To Your Advantage
April 28, 2014 @ 09:17:41

7PHP.com has posted their latest community interview, this time with Josh Lockhart, an author behind the PHP The Right Way project and the Slim microframework. They talk some about his history with PHP, some thoughts on the current state of the language and resources/tools he recommends.

Someone finally took the responsibility to make things go in The Right Direction. And this man, this brave man, this 'super-hero' is here to make a change happen - he is named Mr Josh Lockhart. He is The Captain America of The PHP Community! Josh came forward with a convincing righful movement (if I can allow myself to tag it as such) to help PHP-ers get a sense of good direction when it comes to 'dealing with/and taming' PHP as a tool to make good software. This initiative is named as PHP The Right Way!

Josh answers other questions about his preference in environments, what he sees as the good and bad of PHP and his overall feel of the PHP community and where he feels e fits.

0 comments voice your opinion now!
community interview 7php joshlockhart phptherightway slim

Link: http://7php.com/php-interview-josh-lockhart/

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


Community Events





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


opinion symfony tool mvc series composer version laravel voicesoftheelephpant community language interview library update release package framework podcast security introduction

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