Пример #1
0
<?php

// @codingStandardsIgnoreFile
use League\CommonMark\CommonMarkConverter;
use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$markdown = new CommonMarkConverter();
$post = new EntryEntity();
$post->setId('2015-12-10-zf3-biweekly-update');
$post->setTitle('Zend Framework 3 Update for 2015-12-10');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-12-10 10:50', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-12-10 10:50', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
Per our [previous ZF3 update](/blog/zend-framework-3-update-and-roadmap.html), this is the
first in an ongoing series of bi-weekly posts on ZF3 development status.

The highlights:

- &gt;80 pull requests merged
- 28 releases of components
- 9 components updated to zend-servicemanager/zend-eventmanager v3 changes
- 2 release candidates of expressive
EOS;
Пример #2
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$entry = new EntryEntity();
$author = new AuthorEntity();
$author->fromArray(array('id' => 'yourusername', 'name' => 'Your Full Name', 'email' => '*****@*****.**', 'url' => 'http://your.tld/'));
$entry->setId('this-is-the-stub-used-in-the-uri-and-should-be-unique');
$entry->setTitle('New site!');
$entry->setAuthor($author);
$entry->setDraft(false);
$entry->setPublic(true);
$entry->setCreated(1300744335);
$entry->setUpdated(1301034313);
$entry->setTimezone('America/New_York');
$entry->setTags(array('php', 'personal'));
$body = <<<'EOT'
<p>
    This is the principal body of the post, and will be shown everywhere.
</p>
EOT;
$entry->setBody($body);
$extended = <<<'EOT'
This is the extended portion of the entry, and is only shown in the main entry 
views.
EOT;
$entry->setExtended($extended);
return $entry;
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('robertbasic');
$author->setName("Robert Basic");
$author->setEmail('*****@*****.**');
$author->setUrl('http://robertbasic.com/');
$post = new EntryEntity();
$post->setId('2013-03-28-help-us-improve-the-documentation');
$post->setTitle('Help us improve the documentation!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-03-28 10:15', new DateTimezone('Europe/Belgrade')));
$post->setUpdated(new DateTime('2013-03-28 10:15', new DateTimezone('Europe/Belgrade')));
$body = <<<'EOS'
<p>
    A piece of software is only as good as its documentation. The Zend 
    Framework team and a dozen or so contributors are working hard to 
    improve the Zend Framework 2 documentation, but we still want <em>you</em> 
    to help us improve it even more. Any kind of help is welcome and greatly 
    appreciated.
</p>

<p>
    First of all, you don't have to have a major in English literature to help 
    us with the documentation. We, the contributors, come from all over the 
    world and many of us use English as a second &mdash; or even third! &mdash; 
    language, but that does not stop us from trying to improve the docs. Neither 
Пример #4
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Apigility 0.9.0 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2014-02-28 17:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2014-03-03 12:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>Today, we're releasing version 0.9.0 of Apigility! You can grab and test it
using one of the following two methods:</p>
<ul>
    <li>Composer:
        <code>composer create-project zfcampus/zf-apigility-skeleton apigility 0.9.0</code>
    </li>
    <li>Manual download:
        <pre><code>
        wget https://github.com/zfcampus/zf-apigility-skeleton/releases/download/0.9.0/zf-apigility-skeleton-0.9.0.zip
        unzip zf-apigility-skeleton-0.9.0.zip
        </code></pre>
    </li>
</ul>
Пример #5
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('2011-09-12 Dev status update');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2011-09-12 15:20', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2011-09-12 15:20', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    Zend Framework status update for the weeks of 30 August - 12 September 2011.
</p>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<p>
Much has happened since our last update.
</p>

<h2 id="toc_3.1">2011-08-31 IRC Meeting</h2>

<p>
First, we held our
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 2.2.0 Stable Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-05-15 10:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2013-05-15 10:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of Zend Framework 2.2.0! Packages and installation instructions are
    available at:
</p>

<ul>
    <li>
            <a href="/downloads/latest">http://framework.zend.com/downloads/latest</a>
    </li>
</ul>

<p>
    This is the first <em>stable</em> release in the 2.2 series.
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Apigility 1.0.0beta3 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2014-04-30 15:30', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2014-04-30 15:30', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>We are pleased to announce the immediate availability of Apigility 1.0.0beta3!</p>

<ul>
    <li><a href="http://apigility.org/download">http://apigility.org/download</a></li>
</ul>

<p>This is our third -- and likely last! -- beta release of Apigility! The features in this release are mainly around stabilization.</p>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<h2>Deployment and Console</h2>

<p>Most of the work we've performed since beta2 was on <a href="https://github.com/zfcampus/zf-deploy">zf-deploy</a>, our packaging/deployment tool. We made the following changes:</p>
Пример #8
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Announcing the Zend Framework 3 Roadmap');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-01-21 11:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-01-21 11:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
  The most often-asked questions we get around the Zend Framework project
  include: Where is Zend Framework heading? When will Zend Framework 3 be
  released? What changes and enhancements should we expect?
</p>

<p>
  Since inception, our goal for Zend Framework has been to further the art of
  PHP and ensure our users concentrate on the business logic of their
  application rather than wasting time reinventing the plumbing. The plumbing is
  Zend Framework’s job. We have continued to evolve ZF with best-in-class web
  development practices, and have innovated in areas where we saw gaps; as an
  example, we observed developers struggling with API development, which led us
  to create the Apigility project on top of ZF2.
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 2.2.7 and 2.3.1 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2014-04-15 15:05', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2014-04-15 15:05', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of:
</p>

<ul>
    <li>Zend Framework <strong>2.2.7</strong></li>
    <li>Zend Framework <strong>2.3.1</strong></li>
</ul>

<ul>
    <li>
        <a href="/downloads/latest#ZF2">http://framework.zend.com/downloads/latest#ZF2</a>
    </li>
Пример #10
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Welcome!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2011-08-09 13:45', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2011-08-09 13:45', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    Welcome to the new Zend Framework development blog!
</p>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<p>
    This blog is a new effort by the Zend Framework team to keep the ZF 
    community abreast of development as we work towards version 2.0 and beyond.
</p>

<p>
    In the coming days and weeks, we will be posting updates, including:
</p>
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('ralphschindler');
$author->setName('Ralph Schindler');
$author->setEmail('*****@*****.**');
$author->setUrl('http://ralphschindler.com/');
$post = new EntryEntity();
$post->setTitle('Zend\\Db in ZF 2.1');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-02-01 11:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2013-02-01 11:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'

<p>
    <code>Zend\Db</code> just got a little better with the release of Zend 
    Framework 2.1.  All the cool things you could do on Mysql, SQLite, 
    Postgresql and SQL Server can now be done on DB2 and Oracle.  In addition, 
    a number of additions were brought into the <code>Zend\Db\Sql\Select</code> object as 
    well.
</p>

EOS;
$post->setBody($body);
$extended = <<<'EOC'

<h3>Connecting to DB2 and Oracle</h3>
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setId('2013-03-27-zf1-git-migration');
$post->setTitle('Zend Framework 1 is Migrating to Git!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-03-27 11:45', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2013-03-27 11:45', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    Since its inception, Zend Framework 1 has used <a 
    href="http://subversion.apache.org/">Subversion</a>
    for versioning. However, as we approach its end-of-life (which will occur 
    12-18 months from the time this post is written), and as our experience
    with ZF2 processes becomes more familiar, we -- the Zend team and the Community
    Review team -- feel that we can better support ZF1 via <a href="http://github.com">GitHub</a>.
</p>

<p>
    As such, we will be migrating the ZF1 Subversion repository to GitHub this 
    week. Please read on for details!
</p>
Пример #13
0
<?php

// @codingStandardsIgnoreFile
use League\CommonMark\CommonMarkConverter;
use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$markdown = new CommonMarkConverter();
$post = new EntryEntity();
$post->setTitle('Zend Framework 3 Update and Roadmap');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-11-25 15:45', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-11-25 15:45', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
In October, while at ZendCon, I presented a talk on Zend Framework 3 entitled
"Components, PSR-7, and Middleware: Zend Framework 3." You can
[view it online](http://weierophinney.github.io/2015-10-22-ZF3/), but this post
discusses current status, details some decisions, and points to the work still
to be done.  It's a long read; grab a warm beverage, maybe some popcorn, and
take your time.
EOS;
$post->setBody($markdown->convertToHtml($body));
$extended = <<<'EOC'
## Prelude
Пример #14
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 2.0.0beta4 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2012-05-22 15:30', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2012-05-22 15:30', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
The Zend Framework community is pleased to announce the immediate availability
of Zend Framework 2.0.0beta4. Packages and installation instructions are
available at:
</p>

<ul class="ul">
    <li>
    <a href="http://packages.zendframework.com/">http://packages.zendframework.com/</a>
    </li>
</ul>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 2.0.7 and 2.1.0 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-01-30 14:15', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2013-01-30 16:55', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of <em>both</em> Zend Framework <strong>2.0.7</strong> and <strong>2.1.0</strong>! Packages and installation instructions are
    available at:
</p>

<ul>
    <li>
        <a href="/downloads/latest">http://framework.zend.com/downloads/latest</a>
    </li>
</ul>

<p>
    All existing users of ZF 2.0.x are encouraged to upgrade to 2.1.0; if you prefer 
Пример #16
0
<?php

// @codingStandardsIgnoreFile
use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Announcing Expressive');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-08-26 13:25', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-08-26 13:25', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    We are pleased to announce the immediate availability of a new project, 
    <a href="https://github.com/zendframework/zend-expressive">Expressive</a>!
</p>

<p>
    Expressive allows you to write <a href="http://www.php-fig.org/psr/psr-7/">PSR-7</a>
    <a href="https://github.com/zendframework/zend-stratigility/blob/master/doc/book/middleware.md">middleware</a>
    applications for the web. It is a simple micro-framework built on top of
    <a href="https://github.com/zendframework/zend-stratigility">Stratigility</a>, providing:
</p>

<ul>
Пример #17
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 2.0.5 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2012-11-25 16:00', new DateTimezone('Europe/Paris')));
$post->setUpdated(new DateTime('2012-11-25 16:00', new DateTimezone('Europe/Paris')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of Zend Framework 2.0.5! Packages and installation instructions are
    available at:
</p>

<ul>
    <li>
        <a href="/downloads/latest">http://framework.zend.com/downloads/latest</a>
    </li>
</ul>

EOS;
$post->setBody($body);
Пример #18
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('2011-08-31 IRC Meeting Log');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2011-08-31 14:50', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2011-08-31 14:50', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    Today we held our second Zend Framework community IRC meeting. Find out what
    we discussed, and where you can read the transcript.
</p>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<p>
    The meeting 
    was held on Freenode IRC in the #zf2-meeting channel, and moderated by 
    Pieter Kokx. The meeting ran long (15 minutes over), had several heated 
    exchanges, but gained general consensus on a variety of topics.
</p>
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setId('2013-03-14-zend-framework-3-for-1-release-day');
$post->setTitle('Zend Framework 2.1.4, 2.0.8, and 1.12.3 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-03-14 10:30', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2013-03-14 10:30', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of three new releases: 2.1.4, 2.0.8, and 1.12.3!  Packages and installation 
    instructions are available at:
</p>

<ul>
    <li>
        <a href="/downloads/latest">http://framework.zend.com/downloads/latest</a>
    </li>
</ul>

<p>
Пример #20
0
<?php

// @codingStandardsIgnoreFile
use League\CommonMark\CommonMarkConverter;
use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$markdown = new CommonMarkConverter();
$post = new EntryEntity();
$post->setTitle('Expressive 1.0.0RC3 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-12-07 13:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-12-07 13:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
The Zend Framework community is pleased to announce the immediate availability of Expressive 1.0.0rc3!

You can install it using [Composer](https://getcomposer.org), using the `create-project` command:

```bash
$ composer create-project zendframework/zend-expressive-skeleton:1.0.0rc3@rc expressive
```

If you're already using Expressive, read below for how to update your application!
EOS;
$post->setBody($markdown->convertToHtml($body));
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 1.12.9, 2.2.8, and 2.3.3 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2014-09-17 10:30', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2014-09-17 10:30', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of:
</p>

<ul>
    <li>Zend Framework <strong>1.12.9</strong></li>
    <li>Zend Framework <strong>2.2.8</strong></li>
    <li>Zend Framework <strong>2.3.3</strong></li>
</ul>

<ul>
    <li>
        <a href="/downloads/latest">http://framework.zend.com/downloads/latest</a>
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 1.12.11 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-02-11 11:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-02-11 11:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of:
</p>

<ul>
    <li>Zend Framework <strong>1.12.11</strong></li>
</ul>

<p>You can download Zend Framework at:</p>

<ul>
    <li>
        <a href="/downloads/latest#ZF1">http://framework.zend.com/downloads/latest#ZF1</a>
Пример #23
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('ezimuel');
$author->setName("Enrico Zimuel");
$author->setEmail('*****@*****.**');
$author->setUrl('http://www.zimuel.it/');
$post = new EntryEntity();
$post->setTitle('2011-08-19 Dev status update');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2011-08-19 12:32', new DateTimezone('Europe/Rome')));
$post->setUpdated(new DateTime('2011-08-19 12:32', new DateTimezone('Europe/Rome')));
$body = <<<'EOS'
<p>
    The first weekly status update about the development of ZF2.
</p>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<h2>Community Initiatives</h2>

<p>
    Obviously, community interaction has exploded. Since last week, we've had
    almost 400 messages in the <a
        href="http://zend-framework-community.634137.n4.nabble.com/ZF-Contributor-f680267.html">zf-contributors
        mailing list</a>, an IRC meeting, and the start of a dedicated "ZF2"
    area of the main website (if you're reading this, you're in it).