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

Sameer Borate:
Simple user authentication in Laravel 4
June 17, 2013 @ 14:22:01

Sameer Borate has a new post today showing how you can do simple user authentication in a Laravel 4-based application using the built-in Auth functionality.

With the recent release of Laravel 4, PHP developers have at their disposal one of the finest frameworks for application development. As with all new frameworks, it is always good to write some quick code to get a feel for the underlying architecture. The following post shows a simple authentication application using Laravel.

He walks you through the creation of the simple "users" table, the configuration the Auth class will need to connect and authenticate and the form for the login. He also shows the steps for the actual authentication process as well as the code for the routes to make it all work. Additionally, he shows how to restrict pages to only those with the "admin" level access via an auth filter. You can download the example code here.

0 comments voice your opinion now!
user authentication laravel4 tutorial database auth admin

Link: http://www.codediesel.com/frameworks/simple-user-authentication-in-laravel-4

Sebastian Göttschkes:
symfony2 Testing secure pages
October 08, 2012 @ 13:13:19

Sebastian Göttschkes has a new post to his site showing you how to test secure pages within your Symfony2 applications using a simple "requestWithAuth" method.

If you develop a web application, more often than not you have some kind of user section or admin panel where some kind of login identifies the user and protects your actions against usage from unauthorized people. It can be difficult to do functional tests with this kind of pages as you need to simulate some session or cookie context. In this tutorial, I want to show you how to test your functional pages with symfony2 and phpunit.

He includes a "bad way" to do it, cheating by making a client and feeding it the HTTP auth credentials, and a more correct way involving the "requestWithAuth" method that's called whenever the "request" is called to push those credentials along with every request. Code for this basic function is included.

0 comments voice your opinion now!
symfony2 testing unittest authentication http auth tutorial


Paul Jones' Blog:
Aura for PHP 5.3+, aka Solar 2.0
March 03, 2011 @ 11:13:05

In a new post to his blog today Paul Jones talks about the next version of the Solar Framework, aka Aura, and some of the changes that have led to it.

Just like with a mature person, there is a great deal of knowledge and craft embedded in Solar, but it also still shows its roots and carries the weight of decisions from early in its life. With all that in mind, it's time to start working on Solar version two, using the formal namespaces and other features of PHP 5.3. There are some other very significant changes on the way as well.

The biggest, most obvious change in the project has been the name - Aura. The second is a structure change - Solar's classes all descended from a base class where Aura's structure is more about independent library packages (more along the lines of the Zend Framework's components) with a "system" package to tie them all together. You can find the current codebase on github.

0 comments voice your opinion now!
aura framework solar update project


Richard Thomas' Blog:
Solar Framework Shorts - Controlling form layout
August 17, 2010 @ 14:57:00

Richard Thomas has a new "Solar Short" posted to his blog to make life easier using the Solar Framework. This quick spotlight is about controlling the layout of the standard form renderer.

Solar's form system is pretty powerful and you realize the full beauty when auto generating forms directly from models but by default it uses a DL/DD/DT list for formatting your labels/inputs. If your not a fan of that formatting you can do something about it.

You can define the decorator tags in your framework's installation to replace the tags used for the list, element, label and the value output of the form. One of the comments on the post also suggests using the "decorateAsDiv" method the Solar_Form object provides to force the output into a div.

0 comments voice your opinion now!
solar framework control form output config


Richard Thomas' Blog:
Solar Framework Shorts - Future release looks promising
July 20, 2010 @ 08:35:02

Richard Thomas has a quick new (Solar Framework) post to his blog about some of the upcoming cool features of the framework.

A lot of cool features are being hatched in branches that should hit trunk in the near future! [...] Things to look forward to are view helpers for various services like Google Analytics and the various CDN loaders although this is still under review and might be a few releases away.

Other new features he mentions include a reworked authentication stack that will allow for more than one auth adapter to be used at one time (his example is a normal login and a Facebook login). To help, an auth module for Facebook will also be included to make this even easier.

0 comments voice your opinion now!
solar framework authentication google analytics


Solar Blog:
Switch to Pirum PEAR Server
July 12, 2010 @ 10:13:46

On the Solar framework blog today there's a quick new post about a change they've made to their distribution method:

I just switched the solarphp.com PEAR server over from the old Chiara_PEAR_ServerPirum, then plan and execute the conversion and server update. The presentation is not as slick as I'd like, but it's dead-stupid simple to set up, and I can tweak the CSS etc. later.

Pirum is a simpler alternative for a PEAR channel server manager that aims to make it simpler than some of the more complex options offered in the past. You can install Pirum from its PEAR server.

0 comments voice your opinion now!
pear server solar framework pirum


Richard Thomas' Blog:
Solar Framework manual is coming along
July 02, 2010 @ 10:14:52

In a quick new post to his blog Richard Thomas talks about a change in one of the two things there's the most complaints about when it comes to the Solar framework - documentation.

The 2 biggest complaints about Solar have been it being in "beta" and lack of good docs.. Well its been out of beta and in release for a few months now so that should no longer be a concern. As for docs you can find the new and improved manual here.

The documentation isn't 100% complete but its head and shoulders above some of the automatically generated manual pages the project has had before. They're also looking for interested parties on writing a book (collaboration anyone?) about the framework to help developers get started. You can find out how to get involved in his post.

0 comments voice your opinion now!
solar framework manual update epub book


Richard Thomas' Blog:
Solar Framework Shorts - Using Multiple auth adapters
April 07, 2010 @ 15:56:30

Richard Thomas has posted another "Solar Short" to his PHPJack blog today dealing with a method for using multiple authentication methods in a single Solar framework installation.

What if you want to use multiple methods? OpenID? Facebook Connect? Saml? or one of the other dozen+ solutions that you might use.. What to do? One thing to keep in mind, Auth happens really early in the bootstrapping process so things like SQL may not be available yet unless you specifically loaded it in the config.. Then you need to load the proper auth module and call it as needed..

He includes a code example of how it would work - extending the Solar_Auth_Adapter to create a single "multi-adapter" with a switch to evaluate and load/use the correct authentication method. It uses the Solar_Config object to set the Auth Adapter when it's loaded so you can even use multiples in the same page load if you need it.

1 comment voice your opinion now!
solar framework multiple authentication adapter tutorial


Solar Blog:
Solar 1.0.0 Stable Released
March 15, 2010 @ 10:04:23

As mentioned on Solar blog and a few other places on the web, the stable 1.0.0 version of the Solar PHP framework has been released, marking a significant milestone in the framework's development.

Yesterday, I announced the release of the 1.0.0 stable version of the Solar Framework for PHP on our mailing list. (I tagged the release four days ago on Monday, but wanted to time the announcement to go along with my Solar presentation at ConFoo.)

The Changelog for the release can be found here and some of the latest updates include improved CSRF features, named actions and optimized queries.

This stable release is the culmination of about five years of development effort, with important contributions from several others in the PHP community. My many thanks to everyone who helped make this release, and all the previous releases, better than I could have made it on my own.
0 comments voice your opinion now!
solar framework stable release


Paul Jones' Blog:
Running The Symfony 2 Benchmarks
February 22, 2010 @ 10:37:00

In responding to some of the benchmarks posted about the speed and performance of Symfony 2 and how they truly compare to some of the other frameworks out there, Paul Jones has shared his thoughts and process on using his benchmarking system to get some differing results.

Fabien Potencier released Symfony 2.0.0alpha1 last week, along with some benchmarks showing its performance. I am glad to see that Fabien used my benchmarking system and methodology, and am happy to see that he is paying attention to the performance of his framework. I take this as an acceptance on his part that my methodology is legitimate and valid, and that it has value when comparing framework responsiveness.

Paul points out that Fabien's reporting is a bit inaccurate and goes on to talk about how his numbers are off and what a more correct version of the benchmarks would look like. He takes the testing methodology that Fabien used in his process and reapplies it to his benchmarking process using clean Amazon EC2 instances and Siege to run some response/request testing on software running on each framework. Numbers are run for three different comparisons and results are found...but you'll have to read the rest of the post to find those out.

0 comments voice your opinion now!
benchmark framework symfony solar lithium cake symfony yii



Community Events





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


community unittest release podcast opinion wordpress introduction list laravel install language code threedevsandamaybe configure developer series interview testing refactor framework

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