Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

release-2.0.0beta4

Zend Framework 2.0.0beta4
THIS RELEASE IS A DEVELOPMENT RELEASE AND NOT INTENDED FOR PRODUCTION USE.
PLEASE USE AT YOUR OWN RISK.

This is the fourth in a series of planned beta releases. The beta release
cycle will follow the "gmail" style of betas, whereby new features will
be added in each new release, and BC will not be guaranteed; beta
releases will happen _approximately_ every six weeks.

Once the established milestones have been reached and the featureset has reached
maturity and reasonable stability, we will freeze the API and prepare for
Release Candidate (RC) status. At this time, we are only planning for one more
beta release (beta5) before starting the RC process.

PLEASE NOTE: this beta includes a large number of breaks from the previous beta,
due to introduction of the ServiceManager, changes to the EventManager, renaming
of the ModuleManager, rewrite of the Form component (and removal of the Dojo
component), and several changes in the View layer. Please consult the
ZendSkeletonApplication to get an idea of the changes necessary to make your
application work with beta4.

 - Config component (Enrico Zimuel)
    -  Added reader and writer implementations for JSON and YAML configuration
 - Crypt and Math (Enrico Zimuel)
    - Creates a generic API for string and stream en/decryption
    - Provides bcrypt support
    - Provides BigInteger support
    - Provides common methodology surrounding credential encryption and hashing
 - Db layer (Ralph Schindler)
    - Zend\Db\Adapter: added buffer() to the ResultInterface, added that feature
      to Mysqli Result object
    - Zend\Db\Adapter: added ability to subselect Sqlite for returning a true
      count()
    - Zend\Db\Adapter: added API to return helper closures from the Adapter API
    - Renamed "database" to "schema" in all usages across Zend\Db
    - Zend\Db\Adapter: Various fixes for PDO connection parameters
    - Zend\Db\Sql: created a shared AbstractSql implementation to share
      expression processing
    - Zend\Db\Sql: created a more robust "Expression" object for use in Select
      and Predicates
    - Zend\Db\Sql: created an internal workflow and architecture to handle the
      creation of platform specific queries
    - Zend\Db\Sql: implemented limit() and offset() API to Select
    - Zend\Db\Sql: added having(), order() to SELECT API
    - Zend\Db\Sql: added alias support to Select::columns()
    - Zend\Db\TableGateway: reorganized AbstractTableGateway and TableGateway,
      removed other extensions in favor of "Features"
    - Zend\Db\TableGateway: created a "Features" API in TableGatway to promote
      horizontal extension of TableGatway
 - Di (Ralph Schindler, Marco Pivetta)
    - Added method injectDependencies($instance), to allow injecting an object
      after an instance is already available (used in the ServiceManager)
    - Various fixes based on issue reports
 - Dojo
    - REMOVED. Support was for out-dated versions of Dojo, and with the new Form
      rewrite, it needs to be completely rewritten. This is targetted for post
      2.0.0 at this time.
 - EventManager (Matthew Weier O'Phinney)
    - New SharedEventManager, a non-static version of the original
      StaticEventManager
    - StaticEventManager now extends SharedEventManager and implements a
      singleton pattern
    - New ServiceManager creates a shared instance of SharedEventManager and
      injects it in a non-shared EventManager instance per service; static usage
      is discouraged at this time.
    - attachAggregate() now accepts an optional $priority, which, when present,
      will be passed to the ListenerAggregate, allowing specifying a priority
      during attachment of its events.
    - EventManager now can handle arrays of events as well as wildcard events
    - SharedEventManager now can handle arrays of contexts, wildcard contexts,
      and arrays/wildcard events.
 - Form (Matthew Weier O'Phinney, Kyle Spraggs, Guilherme Blanco)
    - Complete rewrite
    - Elements compose a name and attributes
    - Fieldsets compose a name, attributes, and elements and fieldsets
    - Forms compose a name, attributes, elements, fieldsets, an InputFilter, and
      optionally a Hydrator and bound object.
    - New form view helpers accept the Form objects in order to generate markup.
    - Object binding allows direct binding of model data to and from the Form.
 - InputFilter (Matthew Weier O'Phinney)
    - New component for object-oriented creation of input filters
    - Input objects compose filter and validator chains, as well as metadata
      such as required, allow empty, break on failure, and more.
    - InputFilter objects compose Input and InputFilter objects, and allow
      validating the entire set or specified validation groups.
 - Log (Enrico Zimuel, Benoit Durand)
    - Refactored to provide more flexibility
    - Adds API discoverability (instead of method overloading)
    - Uses the PluginBroker for loading writers and formatters
    - Uses PriorityQueue to manage writer priority
    - Uses FilterChain for filtering messages
    - Adds a renderer for exceptions, a JSON formatter, and additional interfaces
 - Mail (Enrico Zimuel)
    - Allow batch sending via the SMTP transport
 - ModuleManager (Evan Coury, Matthew Weier O'Phinney)
    - Renamed from "Module" to "ModuleManager"
    - Renamed "Consumer" subnamespace to "Feature"
    - Added new listeners:
      - OnBootstrapListener (Module classes defining onBootstrap() will have
        that method attached as a listener on the Application bootstrap event)
      - LocatorRegistrationListener (Module classes implementing the
        LocatorRegisteredInterface feature will be injected in the
        ServiceManager)
      - ServiceListener (Module classes defining getServiceConfiguration() will
        have that method called, and the configuration merged; once all modules
        are loaded, that merged configuration will be passed to the
        ServiceManager)
 - MVC (Matthew Weier O'Phinney, Ralph Schindler, Evan Coury)
    - Removed Bootstrap class and rewrote Application class
      - Composes a ServiceManager, and simply fires events
    - Added RouteListener and DispatchListener classes, implementing the default
      route and dispatch strategies.
    - Created a new "Service" subnamespace, with ServiceManager configuration
      and factories for the default MVC services.
    - Created a new "ViewManager" class, which triggers on the bootstrap event,
      at which time it creates the various objects of the view layer and wires
      them together as well as registers them with the appropriate events.
    - InjectTemplateListener now uses the controller namespace to further
      namespace the view template; the default is now
      "<normalized top-level namespace>/<normalized controller name>/<action>"
 - ServiceManager component (Ralph Schindler, Matthew Weier O'Phinney)
    - Highly performant, programmatic service creation
    - Largely replaces DI, but can also consume Zend\Di
    - Allows:
      - Service registration
      - Lazy-loaded service objects
      - Service factories
      - Service aliasing
      - Abstract (fallback) factories
      - Initializers (manipulate instances after creation)
    - Fully integrated in the MVC solution
 - Renamed interfaces (Gabriel Baker, Sascha Prolic, Maks3w)
   - Most, if not all, interfaces were renamed to suffix with the word
     "Interface". This is to promote discovery of interfaces, as well as make
     naming simpler.
   - Exceptions are affected by this as well. Exception marker interfaces were
     renamed to ExceptionInterface and pushed into the Exception subnamespace of
     each component
 - Composer support (Rob Allen, Marco Pivetta, Kyle Spraggs)
   - Zend Framework is now installable via Composer (http://packagist.org/), as
     are each of its individual components
 - Travis CI integration (Marco Pivetta, Maks3w)
   - ZF2 is tested on each commit by http://travis-ci.org/

Over *400* pull requests for a variety of features and bugfixes were handled
since beta3!

release-2.0.0beta3

This is the third in a series of planned beta releases. The beta release
cycle will follow the "gmail" style of betas, whereby new features will
be added in each new release, and BC will not be guaranteed; beta
releases will happen approximately every six weeks.

Once the established milestones have been reached and the featureset has
reached maturity and reasonable stability, we will freeze the API and
prepare for Release Candidate status.

NEW FEATURES IN BETA3
---------------------

- Refactored Config component (Ben Scholzen, Artur Bodera, Enrico Zimuel, Evan Coury)
  - All readers moved under Zend\Config\Reader
    - JSON and YAML readers removed until beta4
    - New API:
      $xml = new Zend\Config\Reader\Xml();
      $config = new Zend\Config\Config($xml->fromFile($filename);

      or:
      $xml     = new Zend\Config\Reader\Xml();
      $config = $xml->fromFile($filename, true);

      or, simpler:
      $config = Zend\Config\Factory::fromFile($filename);
    - All constant injection removed from readers
      - New Processor API allows processing the retrieved configuration to do
        optional injection/manipulation of configuration values.
    - Ability to import other configuration files within a configuration file
      added.
  - Factory added, to simplify retrieving configuration from any configuration
    format supported.
- New View layer (Matthew Weier O'Phinney)
  - View layer is now:
    - Models, for aggregating and representing data to render; models may be
      nested to represent complex view hierarchies
    - Renderers, which render templates, using either variables provided or
      Models
    - Resolvers, which resolve template names to resources a renderer may
      consume
    - View, which allows attaching strategies for determining the renderer to
      use, as well as how to inject the response when done.
  - Old Zend_View is now Zend\View\Renderer\PhpRenderer
    - Composes a Resolver, a PluginBroker (for helpers), a Variables container
      (for aggregating variables to pass to the view script), and a FilterChain
      (for output filtering).
    - render() now accepts View\Models
    - allows rendering stacks of templates under the same variable scope, via
      the addTemplate() mechanism
    - moves escaping to an Escape view helper; no auto-escaping is enabled
  - MVC integration
    - Strategy listeners for:
      - Handling and returning 404 pages
      - Handling and returning error pages due to exceptions
      - RAD support for creation and injection of view models from action
        controller return values
    - Addition of a "render" event, executing after "dispatch" and before
      "finish"
- New Db layer (Ralph Schindler)
  - Complete rewrite from the ground up.
  - New architecture features low-level drivers, which also provide access to
    the PHP resource being consumed; adapters, which provide basic abstraction
    for common CRUD operations; new SQL abstraction layer, with full predicate
    support; abstraction for ResultSet's, with the ability to cast rows to
    specific object types; abstraction for SQL metadata; and a revised Table and
    Row Data Gateway.
- New Zend\Service\AgileZen component (Enrico Zimuel)
  - Support for the full AgileZen (http://www.agilezen.com) API
  - Developed for use with http://framework.zend.com/zf2/board
- PHP 5.4 support
  - A number of issues when running ZF2 under PHP 5.4 were identified and
    corrected.
- Other components that received attention:
  - Zend\GData (Maks3w)
  - Zend\Navigation (Kyle Spraggs, Frank Brückner)
  - Zend\Session (Mike Willbanks)
  - Zend\Service\Technorati (Maks3w)
  - Zend\Service\StrikeIron (Maks3w)
  - Zend\Service\Twitter (Maks3w)
  - Zend\Http\Header\Accept* (Matthew Weier O'Phinney, Enrico Zimuel)
    - Adds support for q priority, level identifiers, and wildcard media and
      submedia types
  - Zend\Ldap (Maks3w, Stefah Gehrig)
  - Zend\Oauth (bakura10)
  - Zend\Mvc and Zend\Module (Evan Coury, many others)

Around 200 pull requests for a variety of features and bugfixes were handled
since beta2.

release-2.0.0beta2

RELEASE INFORMATION
---------------
Zend Framework 2.0.0beta2

THIS RELEASE IS A DEVELOPMENT RELEASE AND NOT INTENDED FOR PRODUCTION USE.
PLEASE USE AT YOUR OWN RISK.

This is the second in a series of planned beta releases. The beta release
cycle will follow the "gmail" style of betas, whereby new features will
be added in each new release, and BC will not be guaranteed; beta
releases will happen approximately every six weeks.

Once the established milestones have been reached and the featureset has
reached maturity and reasonable stability, we will freeze the API and
prepare for Release Candidate status.

NEW FEATURES IN BETA2
---------------------

- Refactored Mail component
  - Does not change existing Storage API, except:
    - Zend\Mail\MailMessage was moved to Zend\Mail\Storage\MailMessage
    - Zend\Mail\MailPart was moved to Zend\Mail\Storage\MailPart
    - Zend\Mail\Message was moved to Zend\Mail\Storage\Message
    - Zend\Mail\Part was moved to Zend\Mail\Storage\Part
  - Zend\Mail\Mail was renamed to Zend\Mail\Message
    - Encapsulates a mail message and all headers
    - MIME messages are created by attaching a Zend\Mime\Message object as the
      mail message body
  - Added Zend\Mail\Address and Zend\Mail\AddressList
    - Used to represent single addresses and address collections, particularly
      within mail headers
  - Added Zend\Mail\Header\* and Zend\Mail\Headers
    - Representations of mail headers
  - Zend\Mail\Transport interface defines simply "send(Message $message)"
    - Smtp, File, and Sendmail transports rewritten to consume Message objects,
      and to introduce Options classes.
- Refactored Zend\Cache
  - Completely rewritten component.
  - New API features storage adapters and adapter plugins for implementing cache
    storage and features such as serialization, clearing, and optimizing.
    - Current adapters include filesystem, APC, memcached, and memory.
    - All adapters can describe capabilities.
    - Plugins are implemented as event listeners.
  - New "Pattern" API created to simplify things like method, class, object, and
    output caching.
- MVC updates
  - Zend\Module\Manager was stripped of most functionality; it now simply
    iterates requested modules and triggers events.
  - Former manager functionality such as class loading and instantiation,
    "init()" triggering, configuration gathering, and autoloader seeding were
    moved to event listeners.
  - Post-module loading configuration globbing support was added.
    - Simplifies story of overriding module configuration.
  - Recommended filesystem no longer uses plurals for directory names.
  - Recommendations now include a chdir(__DIR__ . '/../') from the
    public/index.php file, and specifying configuration paths to be relative to
    application directory.

In addition, over 100 bug and feature requests were handled since beta1.

release-2.0.0beta1

Zend Framework 2.0.0beta1
THIS RELEASE IS A DEVELOPMENT RELEASE AND NOT INTENDED FOR PRODUCTION USE.
PLEASE USE AT YOUR OWN RISK.

This is the first in a series of planned beta releases. The beta release
cycle will follow the "gmail" style of betas, whereby new features will
be added in each new release, and BC will not be guaranteed; beta
releases will happen no less than every six weeks.

Once the established milestones have been reached and the featureset has
reached maturity and reasonable stability, we will freeze the API and
prepare for Release Candidate status.

NEW FEATURES
------------

- New and refactored autoloaders:
  - Zend\Loader\StandardAutoloader
  - Zend\Loader\ClassMapAutoloader
  - Zend\Loader\AutoloaderFactory
- New plugin broker strategy
  - Zend\Loader\Broker and Zend\Loader\PluginBroker
- Reworked Exception system
  - Allow catching by specific Exception type
  - Allow catching by component Exception type
  - Allow catching by SPL Exception type
  - Allow catching by base Exception type
- Rewritten Session component
- Refactored View component
  - Split helpers into a PluginBroker
  - Split variables into a Variables container
  - Split script paths into a TemplateResolver
  - Renamed base View class "PhpRenderer"
  - Refactored helpers to utilize __invoke() when possible
- Refactored HTTP component
- New Zend\Cloud\Infrastructure component
- New EventManager component
- New Dependency Injection (Zend\Di) component
- New Code component
  - Incorporates refactored versions of former Reflection and
    CodeGenerator components.
  - Introduces Scanner component.
  - Introduces annotation system.
- New MVC layer
  - Zend\Module, for developing modular application architectures.
  - Zend\Mvc, a completely reworked MVC layer built on top of HTTP,
    EventManager, and Di.
- Introduces new packaging system, allowing the usage of Pyrus
  (http://pear2.php.net) to install individual components and/or groups
  of components.

release-2.0.0dev4

Zend Framework 2.0.0dev4
Fourth development snapshot for Zend Framework 2.0.

This snapshot includes:

 - The "Dispatchable" and related interfaces (Zend\Stdlib\Dispatchable,
   MessageDescription, RequestDescription, and ResponseDescription)

 - A fully refactored HTTP component
   - Rewritten URI component, with better and more extensible support
     for an array of different URI schemas, as well as more flexible
     path and parameter decomposition and serialization.

   - Adds HTTP versions of the Stdlib Request and Response interfaces,
     along with full-fledged support for standard HTTP headers.

   - A rewritten HTTP client that consumes Http\Request objects and
     produces Http\Response objects.

   - Two additional HTTP client implementations that provide a
     convenience API around the base HTTP client. One is static, and
     allows for simple one-off requests:

         $response = ClientStatic::get($uri);
         $response = ClientStatic::post(
            $uri,
            array('foo' => 'bar'),
            array('Content-Type' => ClientStatic::ENC_URENCODED)
         );

     The other largely mimics the Zend Framework 1.X HTTP client, and
     proxies functionality to the Request object when appropriate.

 - Updated all docbook sources to DocBook 5 formatting standards.

 - Merging of more than 50 pull requests made by community members,
   ranging from one-liner documentation changes to sweeping fixes to the
   testing repository (including fixing most assertions deprecated in
   PHPUnit 3.5.0).

We will be refactoring all components using the HTTP client in an
upcoming milestone to ensure they continue to work, and will also
post a blog entry and documentation page containing tips.

This snapshot should NOT be used in production, as it is considered
pre-pre alpha quality.

release-2.0.0dev3

Tagged 2.0.0dev3
Contains:
- EventManager
- Initial DI component

release-2.0.0dev2

Zend Framework 2.0.0dev2
Second development milestone for Zend Framework 2.0.

This snapshot concludes two parallel milestones:

 - "Autoloading and Plugin Loading"
 - "Exceptions"

See the milestones page for full details:

    http://framework.zend.com/wiki/display/ZFDEV2/Zend+Framework+2.0+Milestones

The basic functionality added at this point include:

 - Several autoloading strategies, including class maps and PSR-0 style
   autoloading that uses explicit paths instead of the include_path.
 - Tools for generating class maps.
 - Removal of Zend\Loader::loadClass() and Zend\Loader\Autoloader in
   favor of the new solutions
 - Refactoring of the Resource autoloader to conform with the new
   autoloader interface
 - Addition of several plugin class resolution interfaces
 - Addition of an aliasing plugin class resolver
 - Refactoring of PluginLoader to PrefixPathLoader and usage of SplStack
 - Addition of a Broker interface, and a generic implementation,
   PluginBroker
 - Refactoring of all components that used PluginLoader previously to
   use class alias plugin resolvers with plugin brokers
 - Refactoring of Zend\View to make use of a plugin broker and filter
   chain

Several pieces were left to refactor later, including:

 - Zend\Cache (in progress)
 - Zend\Form (likely will replace filters with FilterChain, validators
   with ValidatorChain, and implement a different rendering strategy)
 - View helpers (a "direct" strategy method is no longer necessary using
   a brokering strategy)

This snapshot should NOT be used in production, as it is considered
pre-pre alpha quality.

release-2.0.0dev1

Zend Framework 2.0.0dev1
First development milestone for ZF 2.0.0.

At this time, the ZF Quick Start can be completely implemented in ZF2, and a
reference application containing authentication, ACLs, FlashMessenger, Markup,
and more has been tested. While ZF2 cannot be considered of production quality,
it is in a usable state at this time.

CHANGELOG
- require_once calls stripped
- test suite refactored to remove AllTests.php files, unused test classes/files,
  and refactor conditional tests
- ZF library switched to utilize PHP namespaces instead of vendor prefixes
- Rewritten Zend\Session component
- Added Zend\Stdlib component, with several utility classes, including:
  - FilterChain interface and reference implementation
  - Serializeable versions of SplQueue, SplStack, and SplPriorityQueue
- Added Zend\SignalSlot, to standardize observers throughout framework; utilized
  internally in Zend\Session implementation for validation chains
- Slight refactoring of Zend\Filter and Zend\Validation to separate chain and
  static call implementations
- Renaming of several components (see working/PHPNamespacer-MappedClasses.xml
  for details)
- Moved to Git for version control
Something went wrong with that request. Please try again.