News Feed
Sections




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

Community News:
Packagist Latest Releases for 10.25.2014
October 25, 2014 @ 08:05:10

Recent releases from the Packagist:

Anthony Ferrara:
What's In A Type
October 24, 2014 @ 13:55:39

In a new post to his site Anthony Ferrara takes on the topic of typing in PHP, discussing some of the main ideas around the current typing scheme and the discussions being have about potential changes.

There has been a lot of talk about typing in PHP lately. There are a couple of popular proposals for how to clean up PHP's APIs to be simpler. Most of them involve changing PHP's type system at a very fundamental level. So I thought it would be a good idea to talk about that. What goes into a type?

He starts at the highest level, covering what "typing" is in general and some of the tradeoffs that come with being a strongly typed versus weakly typed language. He then gets into PHP's two "semi-independent type systems" - one for objects and one for everything else. He includes some code examples to illustrate and how, for the non-object handling, context means everything for how the types are switched. He also talks about polymorphism, the chaos that could come from scalars becoming objects and a current RFC suggesting the addition of "safe casting" functions to PHP to provide less "magic" when shifting values from one type to another.

0 comments voice your opinion now!
type switching casting rfc proposal function weak strong

Link: http://blog.ircmaxell.com/2014/10/whats-in-type.html

Laravel News:
The Artisan Files Yitzchok Willroth
October 24, 2014 @ 12:26:13

On the Laravel News site today they've posted an interview with a member of the PHP community: Yitzchok Willroth, aka @coderrabbi. They talk some about his past, how he came to be a developer and what tools he works with on a daily basis.

This week I'm happy to introduce you to the most interesting developer in the world, Yitzchok Willroth aka @coderabbi. Yitzchok is the organizer of the ShorePHP User Group, an active participant in the PHPMentoring Initiative, and a conference speaker.

They start with a look at his past and how he made the transition over from rabbi to developer, mainly based around a major change in his family's life. He talks about the classes and programs he took to improve his skills and how he found some of his first work. They also talk about his contributions to mentoring other developers and where he sees the value in it. They talk about his upcoming php[world] talk, how he came to find and work with Laravel and what a typical day is like for him and his work.

0 comments voice your opinion now!
artisanfiles laravel news yitzchokwillroth community interview

Link: http://laravel-news.com/2014/10/artisan-files-yitzchok-willroth/

Web Mozarts:
Defining PHP Annotations in XML
October 24, 2014 @ 11:10:53

The Web Mozarts blog has an interesting new post today that talks about using annotations in your PHP code to define the attributes in resulting XML that could be generated dynamically from your objects.

Annotations have become a popular mechanism in PHP to add metadata to your source code in a simple fashion. Their benefits are clear: They are easy to write and simple to understand. Editors offer increasing support for auto-completing and auto-importing annotations. But there are also various counter-arguments: Annotations are written in documentation blocks, which may be removed from packaged code. Also, they are coupled to the source code. Whenever an annotation is changed, the project needs to be rebuilt. This is desirable in some, but not in other cases.

They focus in on Symfony-based applications as a good base to work from (as they've pushed to have annotations work in the code for things like routing and data type definition). He starts with an example Doctrine class - a "best buddy" for Symfony as far as annotations go - and how the annotations define the different properties. He also includes an example of the XML output of the same definition generated through an "AnnotationReader" instance. He talks about having multiple XML documents representing one object with different annotations put in each, including the XML output. The post finishes with some advantages including the ease of validation by XML-friendly tools looking to interface with the application.

0 comments voice your opinion now!
annotations xml tutorial symfony doctrine example

Link: http://webmozarts.com/2014/10/24/defining-php-annotations-in-xml/

Inspire Trends:
40 Useful PHP Classes and Libraries for Efficient Development
October 24, 2014 @ 09:56:08

On the Inspire Trends site they've listed out what they think are 35 useful PHP classes and libraries that can make you more efficient in your development.

PHP is a scripting language that also happens to be the most popular in the domain. It is famously used in web development and may not be all that easy to learn for newbies, but it certainly does work wonders and magic. The best part about the internet are the numerous free resources offered on pretty much everything known to mankind and since this particular posts regards PHP, we shall be focusing on that. PHP has allowed web developers around the world to make the web a better environment. It supports several features that automate several processes making your job easier. If you are looking to learn this language, which we believe a developer should, you have come to the right place.

Their list includes tools like:

Check out the full post for the entire list, screenshots of them in action and links to the project sites.

0 comments voice your opinion now!
top40 list efficient library tool classes

Link: http://inspiretrends.com/35-useful-php-classes-libraries-for-efficient-development/

Community News:
Packagist Latest Releases for 10.24.2014
October 24, 2014 @ 08:01:50

Recent releases from the Packagist:


Symfony Blog:
SymfonyCon Madrid 2014 Entire speaker line up revealed!
October 23, 2014 @ 12:56:41

In this latest announcement on the Symfony blog they've announced the release of the full schedule for the upcoming SymfonyCon Madrid 2014 (happening near the end of November). The lineup includes:

  • "Growing and managing communities for large Open Source projects" by Jen Lampton
  • "Life After Assetic: State of the Art Symfony 2 Frontend Dev" by Michelle Sanver
  • "Feature Flags with Symfony" by Benjamin Eberlei
  • "The Twelve-Factor App: Best Practices for PHP on Platforms-as-a-Service" by David Zuelke
  • "Implementing data synchronization API for mobile apps with Silex" by Michele Orselli

The event will also include a keynote from Fabien Potencier and close with a look at profiling in PHP from the same. You can find out more about the conference and pick up your own tickets on the main conference site.

0 comments voice your opinion now!
symfonycon madrid speaker lineup released symfony conference

Link: http://symfony.com/blog/symfonycon-madrid-2014-entire-speaker-line-up-revealed

SitePoint PHP Blog:
Where are you? Implementing geolocation with Geocoder PHP
October 23, 2014 @ 11:45:17

The SitePoint PHP blog has a new tutorial posted by Arno Slatius showing you how to use geocoding in PHP to find the latitude and longitude of a point given its address or name. He makes use of the geocoder-php library to make things a bit simpler.

The beauty of SitePoint, to me, is that you can get inspired to try something or be told about some cool project out there. The internet is simply too big for one person to scout out on their own. Geocoder was one of those for me. I had never heard about it and came across it on the authors Trello board. I love working with maps and geographic information and I use (reverse) geocoding heavily for a project I did for a client; CableTracks. [...] I found out that Geocoder PHP actually is what I was missing for the integration of various services that we use.

He starts by helping you get the library installed (either via Composer or manually) and the creation of a simple Google Maps goecode request for a location. He includes an example of the results and mentions how the library handles locales in both the input and output. He also shows how the tool lets you do reverse geocoding - given a latitude and longitude, it can provide you address and location information. It also includes lookup support for IP addresses and output formatting and examples using both are also included.

0 comments voice your opinion now!
geolocation geocoder tutorial library introduction geocoderphp

Link: http://www.sitepoint.com/implementing-geolocation-geocoder-php/

NetTuts.com:
Basic Functional Testing With Symfony 2's Crawler
October 23, 2014 @ 10:21:33

In this new tutorial on the NetTuts.com site Andrew Perkins shares a way that you can use Symfony2's own Crawler to do some simple functional testing.

Testing your web applications is one of the best things you can do to ensure its health, safety, and security, both for the app and your app's visitors. Symfony 2 offers a complete integration testing suite that you can use to make sure your applications run just as you expect. Today we'll look at how we can use Symfony 2 and PHPUnit, the testing framework that it employs, to write basic functional tests using the Crawler.

He starts off by helping you get a Symfony2 instance installed, the Standard edition, and grabbing the latest PHPUnit phar file from the project's site. He then gets into the actual development of the Crawler bundle, using the command line Symfony tool to do some of the automatic code generation for you. They show how to execute the PHPUnit tests and make the first controller/action/routes for the sample pages to test. He then makes the first test file, extending the "WebTestCase" class from the Symfony2 components. He makes a simple client, executes the request and shows how to test various parts of the response (including an example of mimicking the clicking of a link).

0 comments voice your opinion now!
crawler symfony2 functional testing tutorial introduction

Link: http://code.tutsplus.com/tutorials/basic-functional-testing-with-symfony-2s-crawler--cms-20666


Community Events





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


framework list interview deployment symfony series language update opinion podcast zendserver library tips laravel community release api introduction package install

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