News Feed
Jobs Feed
Sections




News Archive
feed this:

NetTuts.com:
Building Ribbit in PHP
January 04, 2013 @ 10:22:48

In the first part of a new series on NetTuts.com, they started on the creation of a full web application (a Twitter clone). The first article covered the CSS and using LESS to create an interface. In this second post they get into the PHP backend, opting to create it without a framework on the first shot.

In the initial entry in this series, we took care of the UI-aspect of our Twitter-clone, called Ribbit. Now, we'll begin coding the application in a number of languages. This lesson will leverage standard PHP (with homegrown MVC), but, in future articles, we'll review other implementations, such as with Rails or Laravel.

They provide all the code you'll need, the database table structure to power it (MySQL) and the examples of a model, router and basic MVC stack to handle the requests. They help you make a user creation and login system as well as a few other pages ("buddies", "make a post" and a few others). You can also download the source from their Github account if you want it all in one shot.

0 comments voice your opinion now!
ribbit backend tutorial series css less mvc


ScreenFony.com:
Work with bootstrap, assetic and less
September 25, 2012 @ 10:36:20

On the ScreenFony.com site there's a quick tutorial showing you how to get started with Symfony2+Twitter Bootstrap+Assetic+LESS in a basic application. Assetic is a library that helps with asset management and use and LESS is a CSS pre-processor that makes it simpler to work with your site's CSS.

Bootstrap is a well known and powerful front-end framework for fast prototyping, it uses LESS and it can be easily integrate in your Symfony applications with the help of assetic. In this post I'll show how to: Install bootstrap in you Symfony application, load it using assetic, and compile bootstrap LESS files with lessphp.

Using Composer, creating a new Symfony2 project is just a single command away. The just update the "composer.json" and run the install to get the other needed libraries (LESS and the Twitter Bootstrap). They help you set up some Assetic filters for LESS and provide a simple page to output the Bootstrap in your header.

0 comments voice your opinion now!
symfony2 assetic twitter bootstrap less css tutorial composer


ServerGrove Blog:
Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap
March 19, 2012 @ 12:36:25

On the ServerGrove blog, there's a quick post with a handy tip for the Symfony2 + Assetic users out there - how to get it to recognize the "less" module.

Unfortunately the Symfony documentation does not provide any details on how to configure Assetic to use LESS. There is a blog post by Dustin Dobervich that gives some pointers, but after following the instructions, Assetic issued the following error: Cannot find module 'less'. We searched around without much success. After several tries, we nailed the configuration.

It's an easy two-step process: first you be sure you have "npm" (the package manager) installed on your system, then you modify your Symfony app.yml file to point to the Node modules path.

0 comments voice your opinion now!
twitter bootstrap module less css yml setting node module


Ibuildings techPortal:
lessphp PHP implementation of Less CSS
December 17, 2010 @ 09:49:54

On the Ibuildings techPortal today there's a new tutorial from Robert Raszczynski with his look at the lessphp project - a native PHP implementation of the LESS CSS framework.

In a nutshell, Less CSS is a tool that lets you simplify your CSS style sheet and allows you to extend limited CSS functionality by introducing variables, mixins, operations and nested rules. The original implementation is written in Ruby; however, there is a PHP solution based on LESS CSS called lessphp.

He mentions the good and the bad about using LESS - it can speed up your CSS development time by making it more familiar but it also comes with the caveat that the CSS files have to be generated each time an update is made. He covers some of the basic features of lessphp including variables, mixins, nested rules, operations (improving on already defined rules) and being able to use multiple .less files. He includes a XML snippet that can be dropped into your Ant (or Phing) build to run the generation at deployment time.

0 comments voice your opinion now!
lessphp less css framework tutorial features


NETTUTS.com:
How to Squeeze the Most out of LESS
October 29, 2010 @ 10:18:50

On the NETTUTS.com site today there's a new tutorial about using the LESS CSS tool to get the most out of the styling of your website. The tutorial uses the PHP implementation by Leaf Corcoran to accomplish the same things as the Ruby library offers.

During a sick day a few weeks ago, I got around to something I've been meaning to look at for about a year: LESS. If anything web technology is worth a look, I promise LESS is. In this article, we'll look at the amazing power of LESS and its ability to streamline and improve your development process. We'll cover rapid prototyping, building a lightweight grid system, and using CSS3 with LESS.

They use an output buffering trick to handle parsing and executing the ".less" CSS-based files through the library and spit the parsed version back out the other side. There's plenty of examples of how to use the LESS syntax ending up in their previously mentioned grid system using mixins, some cross-browser CSS3 and the CSS3 Pie tool.

0 comments voice your opinion now!
less css tutorial csspie stylesheet


php|architect Blog:
Less Code isn't Always Better
May 03, 2010 @ 13:16:59

On the php|architect blog Keith Casey has a new post that suggests something a bit counterintuitive to what a lot of developers think about their code - less code isn't always better.

Everyone says "I could build that in an afternoon/weekend/marathon session of caffeine-fueled code-debauchery" but to actually do something well, unsurprisingly, it usually takes longer.

He gives an example of this forum script that's under 1KB of code (949 bytes or so) and has some of the basic features of any forum software out there. Keith talks about the software - the features included, the included security, how it uses quotes to its advantage and how it only uses the basic functionality of PHP to make it all work.

Keith also includes a few criticisms of the code like how it uses short tags, the lack of linebreaks, using $_REQUEST and a few more.

To be blunt, it's not pretty and doesn't have many features, but honestly, I fluctuate between terrified and impressed by the feat. [...] More than anything, it's refreshing and fascinating to see what someone can do when they set clear, simple, direct priorities and focus exclusively on those.
0 comments voice your opinion now!
less code opinion forum example


Brendon's Blog:
10 PHP functions you (probably) never use
January 15, 2010 @ 11:27:57

New from his blog Brendon has a list of what he thinks are ten PHP functions you'll never use.

When scripting in PHP, we often restrict ourselves to a limited number of API functions: the common ones, like print(), header(), define(), isset(), htmlspecialchars(), etc. [...] The PHP API actually offers a lot of functionality, some useless and some useful; often seldom used. I have been looking through the available functions and was interested to find some really cool functions that I should have known about.

Here's his list of functions, some of which are more on the "special needs" list than the "never use" list:

0 comments voice your opinion now!
function less used opinion


Alex Netkachov's Blog:
6 PHP coding tips to write less code
November 05, 2007 @ 07:58:00

Alex Netkachov has shared six tips in a new post on his blog today for how you can write less PHP code and get more done with it. It's based around another post from Arnold Daniels talking about a temporary variable method in PHP.

This tip is useful to "lazy" developers who do not even think about variable names. They may prefer magic names like ${0} and 0 is good enough variable name, why not...

His list consists of:

  • Use || (or) and && (and) operations instead of if.
  • Use ternary operator.
  • Use for instead of while.
  • In some cases PHP requires you to create a variable. [...] To handle all these situation you can create a set of small functions which shortcuts frequently used operations.
  • Explore the language you use.
  • When it is better to write more and then read the code easily, do not be lazy.

Check out Vidyut Luther's response to Alex's comments as well as one from Richard Heyes.

0 comments voice your opinion now!
lazy tips less list temporary variable arnolddaniels lazy tips less list temporary variable arnolddaniels


Kore Nordmann's Blog:
Image_3D Performance
May 13, 2006 @ 06:22:27

Kore Nordmann has made a post on his blog with more details on the Image_3D package and some of the rendering times he noticed (and the improvements) with the Zend Guard product.

The ZendGuard offers optimization and encoding for your PHP code. I visited a friend who ownes a license of ZendGuard so that we had the idea to test it with something CPU intesinve like Image_3D. The results were quiet surprising.

According to his results, the Zend Guard optimizer actually dropped the effectiveness and speed of rendering an image with his package - up to a 30% drop!

0 comments voice your opinion now!
image_3d pear package performance zendguard less image_3d pear package performance zendguard less


Professional PHP Blog:
Podcast interview with Andi Gutmans
January 31, 2006 @ 06:45:16

Professional PHP has thie opinions posted today about the latest show from the Pro-PHP Podcast - the interview with Andi Gutmans.

I enjoyed Friday's pro::PHP podcast interview with Andi Gutmans. With a name like pro::PHP how can I not like it? This was a less formal presentation than the Zend Framework webcast. Perhaps surprisingly informal for Andi, at least at the end. I thought Marcus Whitney did a great job selecting and asking questions. There were some technical difficulties in the live version. I hope those are worked out for the next broadcast, which I am looking forward to.

Now, the question is early February, or late February?

If you're confused about that last question, check out this post for the scoop. (According to a comment made by Andi, though, they're shooting for "mid-February")...

0 comments voice your opinion now!
podcast interview andi gutmans less formal mid-february release podcast interview andi gutmans less formal mid-february release



Community Events











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


interview testing framework code series functional podcast development phpunit tool conference application zendframework2 release introduction language community example unittest opinion

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