<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.invenzzia.org/en/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Invenzzia... in English - Tag - phar</title>
  <link>http://blog.invenzzia.org/en/</link>
  <atom:link href="http://blog.invenzzia.org/en/feed/tag/phar/rss2" rel="self" type="application/rss+xml"/>
  <description></description>
  <language>en</language>
  <pubDate>Fri, 12 Aug 2011 10:34:54 +0100</pubDate>
  <copyright>Copyright &amp;copy; Invenzzia</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Invenzzia Summary #3</title>
    <link>http://blog.invenzzia.org/en/post/Invenzzia-Summary-3</link>
    <guid isPermaLink="false">urn:md5:24302500a68c997e196e73cafd446dd8</guid>
    <pubDate>Tue, 12 May 2009 10:38:00 +0200</pubDate>
    <dc:creator>Zyx</dc:creator>
        <category>Summaries</category>
        <category>development</category><category>OPL</category><category>OPT2</category><category>phar</category><category>summary</category><category>svn</category>    
    <description>&lt;p&gt;Welcome to the third episode of the Invenzzia Summaries. Today we will make a small celebration of the 100th revision to the OPL repository, as well as take a closer look at the recently implemented features, such as PHAR support, caching interface and the improved autoloader.&lt;/p&gt;    &lt;h2&gt;100th revision to the OPL repository&lt;/h2&gt;


&lt;p&gt;The Subversion repository has been used in OPL development for ages. However, for the first six months, Open Power Template 2 had to deal without any version control system due to the movement to the new group and abandoning the old network infrastructure. The first revision to the new repository was committed on 30th June 2008 and was relatively poor - in other words, nothing worked. In the last few months the use of the repository has significantly increased, providing the users the freshest versions of the source code and the documentation. Only in the last two weeks, there were 14 new revisions.&lt;/p&gt;


&lt;p&gt;The 100th commit has been made to the OPL library. It includes the newest improvements to the autoloader and the PHAR builder.&lt;/p&gt;


&lt;h2&gt;New OPL autoloader&lt;/h2&gt;


&lt;p&gt;Recently, I have been corresponding with Amadeusz Starzykiewcz about the OPL autoloader improvements. We decided that it would be the best to make it more a general-purpose autoloading tool that suits not only OPL needs, but other libraries (i.e. Doctrine and Zend Framework) as well. The result is visible as the improved API with many limitations removed. The most significant changes are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The autoloader can handle any library using the &lt;code&gt;Foo_Bar_Joe&lt;/code&gt; class naming style.&lt;/li&gt;
&lt;li&gt;The library-specific autoloading needs have been moved to the extra handler. Different libraries may use different handler or not use any.&lt;/li&gt;
&lt;li&gt;Improved library configuration with &lt;code&gt;addLibrary()&lt;/code&gt; method.&lt;/li&gt;
&lt;li&gt;Added performance-tuning methods.&lt;/li&gt;
&lt;li&gt;The special handler for PHAR-s is present.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;PHAR support&lt;/h2&gt;


&lt;p&gt;The full PHAR support has been one of the primary goals for a long time. However, for most of the time, there were other priorities that must have been done, but finally there appeared the PHAR builder in the repository. It allows to produce a fully-functional PHAR from any OPL library. The archive is self-configurable and contains only the executable code. The PHAR-s will be available to download from our website together with the ordinary distribution packages.&lt;/p&gt;


&lt;p&gt;The installation and usage of PHAR-s is described both in the OPT and OPL documentation. Please note that you need PHP 5.3 or PHP 5.2 with installed &lt;em&gt;PHAR&lt;/em&gt; extension in order to use it. As we have the PHAR support, we need to work on the performance a bit. The developers claim that PHAR-s can be as fast as the ordinary files, but our tests show that OPT and OPL archives work a bit slower than the classic solution. Fortunately, it is only a matter of time. This is a relatively new piece of technology and we have to do some research in order to determine, how to get more from it.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.invenzzia.org/en/post/Invenzzia-Summary-3#comment-form</comments>
      <wfw:comment>http://blog.invenzzia.org/en/post/Invenzzia-Summary-3#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.invenzzia.org/en/feed/atom/comments/57</wfw:commentRss>
      </item>
    
</channel>
</rss>
