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

Pantheon Blog:
Please License Your Code
February 26, 2014 @ 13:18:55

In a recent post to the Pantheon blog community member Cal Evans makes one request for the developers out there (PHP and others) - please license your code.

It is wonderful that you have put your code up on GitHub. That is the essence of "Social Coding". However, if you do not put a license on it, you are just teasing developers. In essence, you are saying "See what I made? You can't use it, but I wanted to show you anyhow." Granted, sometimes, developers will use unlicensed code in their projects anyhow, but usually not. Without a proper license, others have no idea what is a permissible use. You wrote it, you own it, you shared it, so let people know they can use it.

He points out that GitHub makes it easy to just throw code up and expose it to the word for use. Unfortunately, due to restrictions put in place by business or technology groups, code without a license simply can't be used. If you're not familiar with code licenses, he links to the Choose a License site that can walk you through the choice via a series of questions.

0 comments voice your opinion now!
code license github choosealicense

Link: https://www.getpantheon.com/blog/please-license-your-code

Lorna Mitchell:
Use a GitHub Branch as a Composer Dependency
February 19, 2014 @ 11:48:53

Lorna Mitchell has a quick post to her site today showing you how to use a GitHub branch as a Composer dependency when the need arrises for something other than master (or whatever branch is "stable" for the project).

My current project sees Celery (a python distributed task queue) added to my PHP application. There's a handy PHP interface to the RabbitMQ that Celery uses as a backend, which makes it easy for me to create jobs, called celery-php. This requires either the PECL AMQP extension< or alternatively it has experimental support for the PHP library for AMQP - I would normally prefer the PECL version but ran into version compatibility problems, missing manual pages, and decided that a pure PHP solution might be more portable and perhaps I would just add the experimental branch to my composer.json file for this project.

She includes an example of what the "composer.json" file would look like to pull this other branch. Two pieces of data have to be defined - the URL for the repository (to prevent Composer from trying to find it) and the branch name in the "require" section where the version would normally be.

0 comments voice your opinion now!
github repository branch composer dependency

Link: http://www.lornajane.net/posts/2014/use-a-github-branch-as-a-composer-dependency

9Lessons.info:
Login with GitHub OAuth using PHP
February 11, 2014 @ 11:36:57

On the 9lessons.info site they've posted a new tutorial showing you how to login with GitHub via OAuth via a custom script.

Nowadays GitHub.com(web based hosting service) is the most import part in developer's life. In this I want to discuss how to implement GitHub OAuth login system for your web project, this is very simple adopt and sure it will helps you to increase your web project registrations. Please check my previous posts for Google, Facebook and Instagram OAuth login system scripts.

The system uses a simple database to store the current user information and their Github ID. They walk you through the flow of creating a new application on the Github site and include the scripts to make the initial request, redirect to the Github site for authorization and handle the callback correctly.

0 comments voice your opinion now!
github oauth tutorial token

Link: http://www.9lessons.info/2014/02/login-with-github-oauth-php.html

QaFoo Blog:
Tracking Changes in PHP Projects
November 20, 2013 @ 11:27:26

The QaFoo team has made available a tool they've created to track changes in PHP projects, the QaFoo Changetrack tool.

Since quite some time I've talked to people about the idea for a tool that tracks changes in the classes and methods of your PHP project in order to detect which entities are changed most frequently, which are often affected bugs and other statistics. After some hacking, we are now making it available on Github.

The tool includes a few commands including one that analyzes the project you point it at (and makes an XML defining its changesets) and another that provides a report of how often a certain method is involved in a change. The post includes an example using the Twig Github repository noting that, because of the analysis being done on each checkout, can take quite a while depending on the age of the project.

0 comments voice your opinion now!
track project change qafoo changetrack github

Link: http://qafoo.com/blog/061_tracking_changes_in_php_projects.html

Manuel Stosic:
Understanding Zend Framework 3...before it's out!
October 31, 2013 @ 09:22:33

Manuel Stosic has a new post today talking about the upcoming Zend Framework v3 (not "coming soon", but coming) and three places you can follow to keep up on the latest in this version as it develops.

ZF3 is not close around the corner. It's still many, many months ahead. But there are reasons why you should bother and get information about ZF3 as soon as possible. If you understand why changes are introduced - and most of them are explained, some will be explained at a later point i guess - then you can spot errors in todays code already! You can improve your current code by knowing what's going to be "in" a couple of months away.

The three resources he points to are the Google Moderator group for ideas around the framework, issues on the Github repository tagged for ZF3 and a series of planned Google Hangouts where core developers will talk about the work on this new version and answer questions from those watching.

0 comments voice your opinion now!
zendframework3 google moderator github issues hangouts

Link: http://samminds.com/2013/10/understanding-zend-framework-3-before-its-out/

Mikko Koppanen:
PHP extension writing
October 21, 2013 @ 10:35:15

Mikko Koppanen has written up a quick post sharing some work he's done to help make writing extension in PHP a little bit easier. He's created a new project that shares some of his experience in extension development.

I plan to add practical examples related to extension writing. There won't be extensive written documentation outside the code, but hopefully the code itself contains enough nuggets of information to be useful. As the README says, if you need a specific example or clarification on something just open an issue in Github.

The project is still in its early stages, but plans are to have quite a bit more examples as time goes on. Also, as Johannes Schlüter points out in the comments, there's also another example like this - Marcus Boerger's demoext (with accompanying slides).

0 comments voice your opinion now!
extension write demo example github project extsample

Link: http://valokuva.org/php-extension-writing/

VG Tech:
Avoid Dependency on 3rd Party Sources with Composer
September 23, 2013 @ 09:36:51

On the VG Tech blog today there's a post that show you a way to reduce your dependencies on Composer (using Github) without sacrificing the use of the tool.

Composer is the defacto standard dependency manager for PHP out there, also here in VG. [...] For the most parts it has been a pleasant experience, but it creates a hard dependency towards external sources as we now require these sources to be available when updating/installing. [...] Since we use Composer for all our internal packages, we already had Satis set up, which basically is a package repository builder for Composer.

They include their Satis configuration and link to more information about the archive feature to bring a mirror of the repo in-house easily. There's also an example of the "require" section that defines the packages and version numbers you're expecting.

0 comments voice your opinion now!
composer satis mirror github configuration example

Link: http://tech.vg.no/2013/09/20/avoid-dependency-on-3rd-party-sources-with-composer/

NuoDB.com:
Using NuoDB from the PHP Zend Framework
June 27, 2013 @ 11:45:57

On the NuoDB site there's a recent post showing how to use this cloud-based database solution from inside Zend Framework applications.

The Zend Framework is an object oriented PHP framework that can be used to construct interactive web applications. NuoDB supports both Zend Framework version 1 and version 2 . In this TechBlog article, I will show you how to use NuoDB with both Zend Framework v1 and v2. I will use the example applications that are provided in the Zend Framework documentation and show you how to make them work with NuoDB.

They briefly walk you through the install and configuration of Apache and NuoDB you'll need to get things up and running. Sample code is included showing you how to install the NuoDB PDO driver, pull down their github repo with the needed files (for both ZF1 and ZF2) and implementing in each version's quickstart application.

0 comments voice your opinion now!
zendframework tutorial nuodb database cloud github

Link: http://www.nuodb.com/techblog/2013/06/20/using-nuodb-from-the-php-zend-framework

Symfony Blog:
The symfony.com website... in your language
June 11, 2013 @ 09:23:43

On the Symfony blog there's a new post mentioning the availability of the static contents of the Symfony site as a public repository.

The Symfony website has always been in English as English is probably the lingua-franca for web developers. But as some sections of the website do not change that frequently (mainly the "What is Symfony?", "Get started", and "About" sections), and because not all developers are comfortable reading English websites, I'm very happy to announce that most of the static contents are now available in a public Git repository.

They've already had people contributing back to the documentation in their own languages including German, Slovak, Czech, Swedish and Polish. Some of them are still works in progress, but they're getting there.

0 comments voice your opinion now!
symfonycom website language translation github repository

Link: http://symfony.com/blog/the-symfony-com-website-in-your-language

DZone.com:
Trying out PHP Refactoring Browser
April 22, 2013 @ 10:03:35

On DZone.com Giorgio Sironi has written up a post about some testing he's done with the ""PHP Refactoring Browser" (more on that here) on some basic code examples.

IDE proponents love, in fact, an Integrated Development Environment that provides all the functionalities you need while writing and editing code; the followers of the Unix way typically write code in Vim while augmenting it via plugins where feasible and leveraging external tools that do one thing, and do it well. [...] Automated refactorings in PHP were out of the league of Vim and Unix users; thanks to Qafoo, however, a new open source tool is able to edit code with predefined refactoring recipes: PHP Refactoring Browser.

He goes through some of the basic features and functionality of the browser, setting expectations a bit. He shows how to get it installed (via Composer) and the results of some of his testing. Rather than including them all in the post, he opted to make actual commits on github of the changes.

0 comments voice your opinion now!
refactoring browser trial commits github example

Link: http://css.dzone.com/articles/trying-out-php-refactoring


Community Events











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


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

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