<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 23:36:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Bennett: Do We Need a Framework For That? Or Hurry Up PHP-FIG]]></title>
      <guid>http://www.phpdeveloper.org/news/19442</guid>
      <link>http://www.phpdeveloper.org/news/19442</link>
      <description><![CDATA[<p>
In <a href="http://happyaccidents.me/blog/do-we-need-a-framework-for-that">this recent post</a> to his site, <i>Phil Bennett</i> shares some thoughts about the PHP-FIG, the standards they're proposing and how the shares interfaces might help reduce dependencies in framework-based applications.
</p>
<blockquote>
[Frameworks] come in several different flavours that all have huge advantages, but also a few disadvantages. Over engineered (because their popularity demands that they be), updated too often, not updated enough. If you decide for example to update your application from using Zend Framework 1 to using Zend Framework 2, this will more than likely require, at least in part, a re-write of your code. This makes scalability difficult.
</blockquote>
<p>
He talks some about the PSRs that the PHP-FIG group has proposed including the PSR-3 logging interface structure. He points out that, by having this same structure, it makes injecting dependencies easy while still leaving the actual functionality open to interpretation. He also suggests that maybe a framework isn't the right choice for all applications and that possibly using a collection of libraries, tied together by the PSR standards, could be a better answer.
</p>
Link: http://happyaccidents.me/blog/do-we-need-a-framework-for-that]]></description>
      <pubDate>Wed, 10 Apr 2013 13:38:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones: A Response To "On php-fig and Shared Interfaces"]]></title>
      <guid>http://www.phpdeveloper.org/news/18944</guid>
      <link>http://www.phpdeveloper.org/news/18944</link>
      <description><![CDATA[<p>
<i>Paul Jones</i> has <a href="http://paul-m-jones.com/archives/4226">written up a response</a> to <i>Matthew Weier O'Phinney</i>'s <a href="http://phpdeveloper.org/news/18933">recent post</a> on shared interfaces and the PHP-FIG. In it he talks about the PHP-FIG group itself and specific references back to the original post.
</p>
<p>
He mentions the ideas of "new thinking" and the limitations that standardized interfaces might try to impose on an application:
</p>
<blockquote>
One is able to imagine reasons why having shared interfaces of the kind described above is in opposition to, or at best orthogonal to, better development practices and greater innovation across PHP land. Even so, I assert that shared interfaces as described, while maybe preventing an imaginable ideal in theory, instead promote an actual good in practice.
</blockquote>
<p>
<i>Matthew Weier O'Phinney</i> <a href="http://mwop.net/blog/2012-12-20-on-shared-interfaces.html#comment-744905017">responded</a> with some of his own comments and correcting some of the misinterpretation of his original comments.
</p>]]></description>
      <pubDate>Mon, 24 Dec 2012 12:54:57 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney: On php-fig and Shared Interfaces]]></title>
      <guid>http://www.phpdeveloper.org/news/18933</guid>
      <link>http://www.phpdeveloper.org/news/18933</link>
      <description><![CDATA[<p>
In his most recent post <i>Matthew Weier O'Phinney</i> (lead on the Zend Framework project) takes a look at the PHP Interoperability Group (php-fig) and some recent discussions that have come up about <a href="http://mwop.net/blog/2012-12-20-on-shared-interfaces.html">shared interfaces</a> for things like logging and caching.
</p>
<blockquote>
A little over a year ago, there was a new push by a number of folks wanting to do more. Paul Jones did a remarkable job of spearheading the next <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">two</a> <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">standards</a>, which centered around coding style. [...] And this is when we started seeing proposals surface for shared interfaces, first around caching, and now around logging (though the latter is the first up for vote).
</blockquote>
<p>
He talks a bit about shared interfaces - what they are and what kind of problem they aim to solve - and how he's not sure he "buys into them". He notes that "sharing is good, developing solutions is better" and stresses making it easier to operate with each other and not worry so much about standardized interfaces.
</p>
<p>
He's found a few problems with the concepts behind them like the Not Invented Here (NIH) idea they promote and that there's not really just a single solution to these kinds of problems ("space for multiple implementations"). He suggests an alternative to the idea of these shared interfaces - <a href="http://en.wikipedia.org/wiki/Bridge_pattern">bridges</a>/<a href="http://en.wikipedia.org/wiki/Adapter_pattern">adapters</a>. He illustrates this idea with some code showing the implementation of a "CacheInterface" and a "FrameworkACache" adapter that wraps the functionality of a "CacheItem" class that might be internal to your application already.
</p>]]></description>
      <pubDate>Fri, 21 Dec 2012 11:45:37 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Security.net: Suhosin 0.9.34-DEV Installation HowTo]]></title>
      <guid>http://www.phpdeveloper.org/news/17903</guid>
      <link>http://www.phpdeveloper.org/news/17903</link>
      <description><![CDATA[<p>
On the PHP-Security.net blog today there's <a href="http://www.php-security.net/archives/8-Suhosin-0.9.34-dev-installation-howto.html">a new post</a> showing how to get the latest version of the <a href="http://www.hardened-php.net/suhosin/">Suhosin</a> security patch for PHP installed. 
</p>
<blockquote>
With the recently released PHP 5.4, the Suhosin patch and extension were removed from many Linux distribution packages (i.e., Debian et al.) and until three weeks ago, there was no possibility to compile and run the Suhosin extension under PHP 5.4. This little howto shall serve as installation instruction for Debian Wheezy users - your mileage may vary. I blogged about this here.
</blockquote>
<p>
They start with the apt-get commands to install the latest PHP5 for your distribution (yum commands are similar, of course) and includes the <a href="https://github.com/stefanesser/suhosin/tarball/master">location to download</a> the latest Suhosin version from <i>Stefan Esser</i>'s github account. Unpack it, compile and "phpize" it and if all goes well, you should have a shared module built and ready for use.
</p>]]></description>
      <pubDate>Thu, 03 May 2012 11:54:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Spooling emails with Symfony2 on VPS and Shared Hosting]]></title>
      <guid>http://www.phpdeveloper.org/news/17882</guid>
      <link>http://www.phpdeveloper.org/news/17882</link>
      <description><![CDATA[<p>
The ServerGrove blog has a recent post for the Symfony2 users out there, showing how you can <a href="http://blog.servergrove.com/2012/04/27/spooling-emails-with-symfony2-on-vps-and-shared-hosting/">spool emails on a VPS/shared hosting</a> using <a href="http://swiftmailer.org/">SwiftMailer</a> and the Symfony2 bundle to interact with it.
</p>
<blockquote>
When you send an email, the mailer communicates with a remote server in charge of receiving the message and of delivering it to the recipient. This process can cause your form to submit slowly as it depends on how fast the mail server responds. Spooling allows us to decouple the application execution line from the process of the sending one, two, or as many emails as we need.
</blockquote>
<p>
They show you how to configure the <a href="https://github.com/symfony/SwiftmailerBundle">SwiftMailerBundle</a> with the mail server's settings, how to set up the command to send the emails and the settings you'll need to put in your cron file to run the "send" operation periodically.
</p>]]></description>
      <pubDate>Mon, 30 Apr 2012 10:20:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Store datasets directly in shared memory with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17426</guid>
      <link>http://www.phpdeveloper.org/news/17426</link>
      <description><![CDATA[<p>
On the IBM developerWorks site today there's a new tutorial showing you how to <a href="http://www.ibm.com/developerworks/opensource/library/os-php-shared-memory/index.html">store shared data</a> directly to a shared memory space of your PHP application.
</p>
<blockquote>
Once created, and given proper permissions, other processes in the same machine can manipulate those segments by: read, write, and delete. This means that an application written in C can share information with an application written in other languages, such as Java or PHP. They can all share information, as long as they can access and understand that information. [...] This article's proposal is simple, learn how to create and manipulate shared memory segments with PHP and use them to store datasets that other applications can use.
</blockquote>
<p>
Your PHP installation will need to have been compiled with "enable-shmop" to work with the code in this tutorial. Their examples show how to use the <a href="http://php.net/shmop_open">shmop_open</a>, <a href="http://php.net/shmop_write">shmop_write</a> and other related functions to read, write, remove and close segments in the shared memory space. They also include an example of using the <a href="https://github.com/klaussilveira/SimpleSHM">SimpleSHM</a> library to make it easier to interact with the shared memory space as a standard storage location.
</p>]]></description>
      <pubDate>Fri, 20 Jan 2012 11:29:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Deploying Symfony2 Projects on Shared Hosting with Capifony]]></title>
      <guid>http://www.phpdeveloper.org/news/16834</guid>
      <link>http://www.phpdeveloper.org/news/16834</link>
      <description><![CDATA[<p>
The ServerGrove blog, a hosting provider whose services include shared hosting, has posted a guide to help you <a href="http://blog.servergrove.com/2011/09/07/deploying-symfony2-projects-on-shared-hosting-with-capifony/">deploy to shared hosting</a> with <a href="http://capifony.org/">Capifony</a>, a Symfony-based tool for use with <a href="https://github.com/capistrano/capistrano">Capistrano</a>.
</p>
<blockquote>
This article is meant to help you configure and deploy your projects developed with Symfony2 into a <a href="http://www.servergrove.com/sharedhosting">Shared Hosting</a> environment, so if you need to deploy using capifony on a VPS, please <a href="http://blog.servergrove.com/2010/07/12/symfony-git-capistrano-capifony/">read this article</a>.
</blockquote>
<p>
You'll need ssh access to the server to get things set up for the deployment as well as a local environment where you can install Ruby and Ruby Gems (their platform for the example is OSX). They help you get those installed and generate a key for use with the deployment. Once this key is copied over to the remote system, you can then set up the config to use the password-less connection and to deploy from either a local repository or a remote location (like github).
</p>]]></description>
      <pubDate>Thu, 08 Sep 2011 11:15:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Martin Sikora's Blog: Symfony 1.4 on shared webhosting]]></title>
      <guid>http://www.phpdeveloper.org/news/16521</guid>
      <link>http://www.phpdeveloper.org/news/16521</link>
      <description><![CDATA[<p>
On his blog <i>Martin Sikora</i> shares a solution that many a Symfony developer out there might find handy for <a href="http://www.martinsikora.com/symfony-1-4-on-shared-webhosting">running their application in a shared hosting environment</a>:
</p>
<blockquote>
Some time ago (actually when I was making this blog) I posted on <a href="http://www.stackoverflow.com/">stackoveflow.com</a> a question on <a href="http://stackoverflow.com/questions/2809778/symfony-on-virtual-host-document-root-problem">how to configure Symfony to run on shared webservers</a> where you can't change your website's document root. I solved it but forgot that I was asking and left it without any answer.
</blockquote>
<p>
The main problem is that the DOCUMENT_ROOT for the hosting service can't be changed by the users of the shared host. To solve this he modified his routing rules (sfPatternRouting class) and changed his .htaccess file to rewrite things over from just "/page" to "/web/page" instead. A simple solution, but it might be evasive if you've never configured it before.
</p>]]></description>
      <pubDate>Mon, 27 Jun 2011 11:07:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: How to install bbPress on shared hosting]]></title>
      <guid>http://www.phpdeveloper.org/news/15708</guid>
      <link>http://www.phpdeveloper.org/news/15708</link>
      <description><![CDATA[<p>
On the ServerGrove blog today there's <a href="http://blog.servergrove.com/2011/01/07/how-to-install-bbpress-on-shared-hosting/">a new tutorial</a> posted showing you, step by step, how to install the <a href="http://bbpress.org/">bbPress</a> software (from the folks that brought you <a href="http://wordpress.org">WordPress</a>.
</p>
<blockquote>
<a href="http://bbpress.org/">bbPress</a> is a forum software developed by the same folks who created WordPress. It's a lightweight bulletin board system that seems to be gaining traction lately. bbPress runs really well on our <a href="http://www.servergrove.com/sharedhosting">shared hosting plans</a> so we decided to put together a quick tutorial on how to install bbpress on our systems.
</blockquote>
<p>
Despite the description, the guide can be followed to install it just about everywhere thanks to the simple installation process bbPress uses. He links you to the latest download, gives you an example of what you can expect from the installer and talks about setting up the database. This is where is get specific, using their Plesk tool to set it up. This is only to set up the actual database, though - you can do this through any number of tools, including the command line.
</p>]]></description>
      <pubDate>Mon, 10 Jan 2011 08:42:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alvaro Videla's Blog: Reply to "Scala is Easier than PHP"]]></title>
      <guid>http://www.phpdeveloper.org/news/15467</guid>
      <link>http://www.phpdeveloper.org/news/15467</link>
      <description><![CDATA[<p>
<i>Alvaro Videla</i> has <a href="http://videlalvaro.github.com/2010/11/reply-to-scala-is-easier-than-php.html">written up a response</a> to <i>Wade Arnold</i>'s <a href="http://phpdeveloper.org/news/15453">Scala's easier than PHP</a> post and some of the points he doesn't agree with him on.
</p>
<blockquote>
Before going on with the points, let me state something: please avoid flame wars, all the Scala vs. PHP stuff, fanboyism and what not. This post is not about that. Regarding Wade Arnold I have to say that I fully respect him. While I don't know him personally, I know him for his work on AMFPHP, since it was a platform I used to work with before. 
</blockquote>
<p>
<i>Alvaro</i> talks about functional programming and some of the main points he had made about Erlang in a talk he had given - code reload, being ready for multi-core and no shared state between scripts. He talks about how these (really) apply to PHP.
</p>]]></description>
      <pubDate>Mon, 22 Nov 2010 08:29:12 -0600</pubDate>
    </item>
  </channel>
</rss>
