Zend Framework 2
Overview
Installation
Getting Started with Zend Framework 2
Some assumptions
The tutorial application
Getting started: A skeleton application
Using the Apache Web Server
Using the Built-in PHP CLI Server
Error reporting
Routing and controllers
Create the controller
Initialise the view scripts
Database and models
The database
The model files
Using ServiceManager to configure the table gateway and inject into the AlbumTable
Back to the controller
Listing albums
Styling and Translations
Forms and actions
Adding new albums
Editing an album
Deleting an album
Ensuring that the home page displays the list of albums
Conclusion
Getting Started with Zend Framework 2
Installation
Getting Started
A quick tour of the skeleton application
The dispatch cycle
The MyTaskList application
The Checklist module
The Module class
The application’s pages
Routing
The TaskController
The model
Using Service Manager to configure the database credentials and inject into the controller
Listing tasks
Redirect the home page
Styling
Adding new tasks
Editing a task
Deleting a task
Application Diagnostics
Step-by-step debugging
Conclusion
Zend Framework Tool (ZFTool)
Installation using Composer
Manual installation
Without installation, using the PHAR file
Usage
Learning Dependency Injection
Very brief introduction to Di.
Simplest usage case (2 classes, one consumes the other)
Simplest Usage Case Without Type-hints
Simplest usage case with Compiled Definition
Creating a precompiled definition for others to use
Using Multiple Definitions From Multiple Sources
Generating Service Locators
Unit Testing a Zend Framework 2 application
Setting up the tests directory
Bootstrapping your tests
Your first controller test
A failing test case
Configuring the service manager for the tests
Testing actions with POST
Testing model entities
Testing model tables
Conclusion
Using the EventManager
Terminology
Getting started
Shared managers
Wildcards
Listener aggregates
Introspecting results
Short-circuiting listener execution
Keeping it in order
Custom event objects
Putting it together: Implementing a simple caching system
Conclusion
Advanced Configuration Tricks
System configuration
Module Configuration
Configuration mapping table
Configuration Priority
Manipulating merged configuration
Configuration merging workflow
Using Zend\Navigation in your Album Module
Preparation
Setting Up Zend\Navigation
Configuring our Site Map
Adding the Menu View Helper
Adding Breadcrumbs
Using Zend\Paginator in your Album Module
Preparation
Modifying the AlbumTable
Modifying the AlbumController
Updating the View Script
Creating the Pagination Control Partial
Using the PaginationControl View Helper
Setting up a database adapter
Introduction
Basic setup
Setting a static adapter
Migration from Zend Framework 1
Namespacing Old Classes
Namespacing a ZF1 Application
HOWTO Namespace Your Models
Running Zend Framework 2 and Zend Framework 1 in parallel
Use ZF2 in a ZF1 project
Use ZF1 in a ZF2 project
Run ZF1 and ZF2 together
Introduction to Zend\Authentication
Adapters
Results
Identity Persistence
Usage
Database Table Authentication
Introduction
Basic Usage
Advanced Usage: Persisting a DbTable Result Object
Digest Authentication
Introduction
Specifics
Identity
HTTP Authentication Adapter
Introduction
Design Overview
Configuration Options
Resolvers
Basic Usage
LDAP Authentication
Introduction
Usage
The API
Server Options
Collecting Debugging Messages
Common Options for Specific Servers
Authentication Validator
Introduction
Basic Usage
Introduction to Zend\Barcode
Barcode creation using Zend\Barcode\Barcode class
Using Zend\Barcode\Barcode::factory
Drawing a barcode
Rendering a barcode
Zend\Barcode\Barcode Objects
Common Options
Common Additional Getters
Description of shipped barcodes
Zend\Barcode Renderers
Common Options
Zend\Barcode\Renderer\Image
Zend\Barcode\Renderer\Pdf
Zend\Cache\Storage\Adapter
Overview
Quick Start
Basic Configuration Options
The StorageInterface
The AvailableSpaceCapableInterface
The TotalSpaceCapableInterface
The ClearByNamespaceInterface
The ClearByPrefixInterface
The ClearExpiredInterface
The FlushableInterface
The IterableInterface
The OptimizableInterface
The TaggableInterface
The Apc Adapter
The Dba Adapter
The Filesystem Adapter
The Memcached Adapter
The Memory Adapter
The WinCache Adapter
The XCache Adapter
The ZendServerDisk Adapter
The ZendServerShm Adapter
Examples
Zend\Cache\Storage\Capabilities
Overview
Available Methods
Examples
Zend\Cache\Storage\Plugin
Overview
Quick Start
The ClearExpiredByFactor Plugin
The ExceptionHandler Plugin
The IgnoreUserAbort Plugin
The OptimizeByFactor Plugin
The Serializer Plugin
Available Methods
Examples
Zend\Cache\Pattern
Overview
Quick Start
Available Methods
Zend\Cache\Pattern\CallbackCache
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Cache\Pattern\ClassCache
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Cache\Pattern\ObjectCache
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Cache\Pattern\OutputCache
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Cache\Pattern\CaptureCache
Overview
Quick Start
Configuration Options
Available Methods
Examples
Introduction to Zend\Captcha
Captcha Operation
CAPTCHA Adapters
Zend\Captcha\AbstractWord
Zend\Captcha\Dumb
Zend\Captcha\Figlet
Zend\Captcha\Image
Zend\Captcha\ReCaptcha
Introduction
Theory of Operation
ZendCodeGenerator Reference
Abstract Classes and Interfaces
Concrete CodeGenerator Classes
ZendCodeGenerator Examples
Introduction to Zend\Config
Using Zend\Config\Config with a Reader Class
Using Zend\Config\Config with a PHP Configuration File
Theory of Operation
Zend\Config\Reader
Zend\Config\Reader\Ini
Zend\Config\Reader\Xml
Zend\Config\Reader\Json
Zend\Config\Reader\Yaml
Zend\Config\Writer
Zend\Config\Writer\Ini
Zend\Config\Writer\Xml
Zend\Config\Writer\PhpArray
Zend\Config\Writer\Json
Zend\Config\Writer\Yaml
Zend\Config\Processor
Zend\Config\Processor\Constant
Zend\Config\Processor\Filter
Zend\Config\Processor\Queue
Zend\Config\Processor\Token
Zend\Config\Processor\Translator
The Factory
Loading configuration file
Storing configuration file
Introduction to Zend\Console
Writing console routes
Handling console requests
Adding console usage info
Console routes and routing
Router configuration
Basic route
Catchall route
Console routes cheat-sheet
Console-aware modules
Application banner
Basic usage
Best practices
Console-aware action controllers
Handling console requests
Sending output to console
Are we in a console?
Reading values from console parameters
Console adapters
Retrieving console adapter
Using console adapter
Console prompts
Confirm
Line
Char
Select
Introduction
Declaring Getopt Rules
Declaring Options with the Short Syntax
Declaring Options with the Long Syntax
Fetching Options and Arguments
Handling Getopt Exceptions
Fetching Options by Name
Reporting Options
Fetching Non-option Arguments
Configuring ZendConsoleGetopt
Adding Option Rules
Adding Help Messages
Adding Option Aliases
Adding Argument Lists
Adding Configuration
Introduction to Zend\Crypt
Encrypt/decrypt using block ciphers
Key derivation function
Pbkdf2 adapter
SaltedS2k adapter
Scrypt adapter
Password
Bcrypt
Apache
Public key cryptography
Diffie-Hellman
RSA
Zend\Db\Adapter
Creating an Adapter - Quickstart
Creating an Adapter Using Dependency Injection
Query Preparation Through Zend\Db\Adapter\Adapter::query()
Query Execution Through Zend\Db\Adapter\Adapter::query()
Creating Statements
Using the Driver Object
Using The Platform Object
Using The Parameter Container
Examples
Zend\Db\ResultSet
Quickstart
Zend\Db\ResultSet\ResultSet and Zend\Db\ResultSet\AbstractResultSet
Zend\Db\ResultSet\HydratingResultSet
Zend\Db\Sql
Zend\Db\Sql\Sql (Quickstart)
Zend\Db\Sql’s Select, Insert, Update and Delete
Zend\Db\Sql\Select
Zend\Db\Sql\Insert
Zend\Db\Sql\Update
Zend\Db\Sql\Delete
Zend\Db\Sql\Where & Zend\Db\Sql\Having
Zend\Db\Sql\Ddl
Creating Tables
Altering Tables
Dropping Tables
Executing DDL Statements
Currently Supported Data Types
Currently Supported Constraint Types
Zend\Db\TableGateway
Basic Usage
TableGateway Features
Zend\Db\RowGateway
Quickstart
ActiveRecord Style Objects
Zend\Db\Metadata
Basic Usage
Dumping Variables
Example of dump() method
Introduction to Zend\Di
Dependency Injection
Dependency Injection Containers
Zend\Di Quickstart
Zend\Di Definition
DefinitionList
RuntimeDefinition
CompilerDefinition
ClassDefinition
Zend\Di InstanceManager
Parameters
Preferences
Aliases
Zend\Di Configuration
Zend\Di Debugging & Complex Use Cases
Debugging a DiC
Complex Use Cases
Introduction to Zend\Dom
Zend\Dom\Query
Theory of Operation
Methods Available
Introduction to Zend\Escaper
Overview
What Zend\Escaper is not
Theory of Operation
The Problem with Inconsistent Functionality
Why Contextual Escaping?
Configuring Zend\Escaper
Escaping HTML
Examples of Bad HTML Escaping
Examples of Good HTML Escaping
Escaping HTML Attributes
Examples of Bad HTML Attribute Escaping
Examples of Good HTML Attribute Escaping
Escaping Javascript
Examples of Bad Javascript Escaping
Examples of Good Javascript Escaping
Escaping Cascading Style Sheets
Examples of Bad CSS Escaping
Examples of Good CSS Escaping
Escaping URLs
Examples of Bad URL Escaping
Examples of Good URL Escaping
The EventManager
Overview
Quick Start
Configuration Options
Available Methods
Examples
Using Exceptions
Catching an Exception
Introduction to Zend\Feed
Reading RSS Feed Data
Importing Feeds
Dumping the contents of a feed
Retrieving Feeds from Web Pages
Find Feed Links
Consuming an RSS Feed
Reading a feed
Get properties
Consuming an Atom Feed
Basic Use of an Atom Feed
Consuming a Single Atom Entry
Reading a Single-Entry Atom Feed
Zend\Feed and Security
Introduction
Filtering data using HTMLPurifier
Escaping data using Zend\Escaper
Zend\Feed\Reader\Reader
Introduction
Importing Feeds
Retrieving Underlying Feed and Entry Sources
Cache Support and Intelligent Requests
Locating Feed URIs from Websites
Attribute Collections
Retrieving Feed Information
Retrieving Entry/Item Information
Extending Feed and Entry APIs
Zend\Feed\Writer\Writer
Introduction
Architecture
Getting Started
Setting Feed Data Points
Setting Entry Data Points
Zend\Feed\PubSubHubbub
What is PubSubHubbub?
Architecture
Zend\Feed\PubSubHubbub\Publisher
Zend\Feed\PubSubHubbub\Subscriber
Zend\File\ClassFileLocator
Overview
Available Methods
Examples
Introduction to Zend\Filter
What is a filter?
Basic usage of filters
Using the StaticFilter
Double filtering
Standard Filter Classes
Alnum
Alpha
BaseName
Boolean
Callback
Compress and Decompress
Digits
Dir
Encrypt and Decrypt
HtmlEntities
Int
Null
NumberFormat
PregReplace
RealPath
StringToLower
StringToUpper
StringTrim
StripNewLines
StripTags
UriNormalize
Word Filters
CamelCaseToDash
CamelCaseToSeparator
CamelCaseToUnderscore
DashToCamelCase
DashToSeparator
DashToUnderscore
SeparatorToCamelCase
SeparatorToDash
SeparatorToSeparator
UnderscoreToCamelCase
UnderscoreToSeparator
UnderscoreToDash
File Filter Classes
Decrypt
Encrypt
Lowercase
Rename
RenameUpload
Uppercase
Filter Chains
Setting Filter Chain Order
Using the Plugin Manager
Zend\Filter\Inflector
Transforming MixedCase and camelCaseText to another format
Static Rules
Filter Inflector Rules
Setting Many Rules At Once
Example
Using the StaticFilter
Writing Filters
Example
Introduction
Quick Start
Programmatic Form Creation
Creation via Factory
Factory-backed Form Extension
Validating Forms
Hinting to the Input Filter
Binding an object
Rendering
Validation Groups
Using Annotations
Form Collections
Creating Fieldsets
The Form Element
The Controller
The View
Adding New Elements Dynamically
Validation groups for fieldsets and collection
File Uploading
Standard Example
File Post-Redirect-Get Plugin
HTML5 Multi-File Uploads
Upload Progress
Additional Info
Advanced use of forms
Short names
Creating custom elements
Handling dependencies
The specific case of initializers
Form Elements
Introduction
Element Base Class
Standard Elements
HTML5 Elements
Form View Helpers
Introduction
Standard Helpers
HTML5 Helpers
File Upload Progress Helpers
Zend\Http
Overview
Zend\Http Request, Response and Headers
The Request Class
Overview
Quick Start
Configuration Options
Available Methods
Examples
The Response Class
Overview
Quick Start
Configuration Options
Available Methods
Examples
The Headers Class
Overview
Quick Start
Configuration Options
Available Methods
Zend\Http\Header\HeaderInterface Methods
Zend\Http\Header\AbstractAccept Methods
Zend\Http\Header\AbstractDate Methods
Zend\Http\Header\AbstractLocation Methods
List of HTTP Header Types
Examples
HTTP Client
Overview
Quick Start
Configuration
Examples
HTTP Client - Connection Adapters
Overview
The Socket Adapter
The Proxy Adapter
The cURL Adapter
The Test Adapter
Creating your own connection adapters
HTTP Client - Advanced Usage
HTTP Redirections
Adding Cookies and Using Cookie Persistence
Setting Custom Request Headers
File Uploads
Sending Raw POST Data
HTTP Authentication
Sending Multiple Requests With the Same Client
Data Streaming
HTTP Client - Static Usage
Overview
Quick Start
Configuration Options
Available Methods
Translating
Adding translations
Supported formats
Setting a locale
Translating messages
Caching
I18n View Helpers
Introduction
CurrencyFormat Helper
DateFormat Helper
NumberFormat Helper
Plural Helper
Translate Helper
TranslatePlural Helper
Abstract Translator Helper
I18n Filters
Alnum
Alpha
NumberFormat
NumberParse
I18n Validators
Float
Supported options for Zend\I18n\Validator\Float
Simple float validation
Localized float validation
Int
Introduction
File Upload Input
Basic Usage
Introduction
Basic Usage
Pretty-printing JSON
Advanced Usage
JSON Objects
Encoding PHP objects
Internal Encoder/Decoder
JSON Expressions
XML to JSON conversion
Example
Zend\Json\Server - JSON-RPC server
Introduction
Basic Usage
Advanced Details
Introduction to Zend\Ldap
Theory of operation
API overview
Configuration / options
API Reference
Zend\Ldap\Ldap
Zend\Ldap\Collection
Zend\Ldap\Attribute
Zend\Ldap\Converter\Converter
Zend\Ldap\Dn
Zend\Ldap\Filter
Zend\Ldap\Node
Zend\Ldap\Node\RootDse
OpenLDAP
ActiveDirectory
eDirectory
Zend\Ldap\Node\Schema
OpenLDAP
ActiveDirectory
Zend\Ldap\Ldif\Encoder
Usage Scenarios
Authentication scenarios
Basic CRUD operations
Extended operations
Tools
Creation and modification of DN strings
Using the filter API to create search filters
Modify LDAP entries using the Attribute API
Object-oriented access to the LDAP tree using Zend\Ldap\Node
Basic CRUD operations
Extended operations
Tree traversal
Getting information from the LDAP server
RootDSE
Schema Browsing
Serializing LDAP data to and from LDIF
Serialize a LDAP entry to LDIF
Deserialize a LDIF string into a LDAP entry
The AutoloaderFactory
Overview
Quick Start
Configuration Options
Available Methods
Examples
The StandardAutoloader
Overview
Quick Start
Configuration Options
Available Methods
Examples
The ClassMapAutoloader
Overview
Quick Start
Configuration Options
Available Methods
Examples
The ModuleAutoloader
Overview
Quickstart
Configuration Options
Available Methods
Examples
The SplAutoloader Interface
Overview
Quick Start
Configuration Options
Available Methods
Examples
The PluginClassLoader
Overview
Quick Start
Configuration Options
Available Methods
Examples
The ShortNameLocator Interface
Overview
Quick Start
Configuration Options
Available Methods
Examples
The PluginClassLocator interface
Overview
Quick Start
Configuration Options
Available Methods
Examples
The Class Map Generator utility: bin/classmap_generator.php
Overview
Quick Start
Configuration Options
Zend\Log
Overview
Creating a Log
Logging Messages
Destroying a Log
Using Built-in Priorities
Understanding Log Events
Log PHP Errors
Writers
Writing to Streams
Writing to Databases
Writing to FirePHP
Stubbing Out the Writer
Testing with the Mock
Compositing Writers
Filters
Overview
Available filters
Formatters
Simple Formatting
Formatting to XML
Formatting to FirePhp
Introduction to Zend\Mail
Getting started
Configuring the default sendmail transport
Zend\Mail\Message
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Mail\Transport
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Mail\Transport\SmtpOptions
Overview
Quick Start
Configuration Options
Available Methods
Examples
Zend\Mail\Transport\FileOptions
Overview
Quick Start
Configuration Options
Available Methods
Examples
Introduction to Zend\Math
Random number generator
Big integers
Overview
Introduction
Theory of Operation
Memory Manager
Creating a Memory Manager
Managing Memory Objects
Memory Manager Settings
Memory Objects
Movable
Locked
Memory container ‘value’ property
Memory container interface
Zend\Mime
Introduction
Static Methods and Constants
Instantiating Zend\Mime
Zend\Mime\Message
Introduction
Instantiation
Adding MIME Parts
Boundary handling
Parsing a string to create a Zend\Mime\Message object
Available methods
Zend\Mime\Part
Introduction
Instantiation
Methods for rendering the message part to a string
Available methods
Introduction to the Module System
The autoload_*.php Files
The Module Manager
Module Manager Events
Module Manager Listeners
The Module Class
A Minimal Module
A Typical Module Class
The “loadModules.post” Event
The MVC “bootstrap” Event
The Module Autoloader
Module Autoloader Usage
Non-Standard / Explicit Module Paths
Packaging Modules with Phar
Best Practices when Creating Modules
Keep the
init()
and
onBootstrap()
methods lightweight
Do not perform writes within a module
Utilize a vendor prefix for module names
Utilize a module prefix for service names
Introduction to the MVC Layer
Basic Application Structure
Basic Module Structure
Bootstrapping an Application
Bootstrapping a Modular Application
Conclusion
Quick Start
Install the Zend Skeleton Application
Create a New Module
Update the Module Class
Create a Controller
Create a View Script
Create a Route
Tell the Application About our Module
Test it Out!
Default Services
Theory of Operation
ServiceManager
Abstract Factories
Plugin Managers
ViewManager
Application Configuration Options
Default Configuration Options
Routing
Router Types
HTTP Route Types
HTTP Routing Examples
Console Route Types
The MvcEvent
Order of events
MvcEvent::EVENT_BOOTSTRAP
MvcEvent::EVENT_ROUTE
MvcEvent::EVENT_DISPATCH
MvcEvent::EVENT_DISPATCH_ERROR
MvcEvent::EVENT_RENDER
MvcEvent::EVENT_RENDER_ERROR
MvcEvent::EVENT_FINISH
The SendResponseEvent
Listeners
Triggerers
Available Controllers
Common Interfaces Used With Controllers
The AbstractActionController
The AbstractRestfulController
Controller Plugins
AcceptableViewModelSelector Plugin
FlashMessenger Plugin
Forward Plugin
Identity Plugin
Layout Plugin
Params Plugin
Post/Redirect/Get Plugin
File Post/Redirect/Get Plugin
Redirect Plugin
Url Plugin
Examples
Controllers
Bootstrapping
Introduction to Zend\Navigation
Pages and Containers
View Helpers
Quick Start
Pages
Common page features
Zend\Navigation\Page\Mvc
Zend\Navigation\Page\Uri
Creating custom page types
Creating pages using the page factory
Containers
Creating containers
Adding pages
Removing pages
Finding pages
Iterating containers
Other operations
View Helpers
Introduction
Translation of labels and titles
Integration with ACL
Navigation setup used in examples
View Helper - Breadcrumbs
Introduction
Basic usage
Specifying indentation
Customize output
Rendering using a partial view script
View Helper - Links
Introduction
Basic usage
View Helper - Menu
Introduction
Basic usage
Calling renderMenu() directly
Rendering the deepest active menu
Rendering with maximum depth
Rendering with minimum depth
Rendering only the active branch
Rendering only the active branch with minimum depth
Rendering only the active branch with maximum depth
Rendering only the active branch with maximum depth and no parents
Rendering a custom menu using a partial view script
View Helper - Sitemap
Introduction
Basic usage
Rendering using no
ACL
role
Rendering using a maximum depth
View Helper - Navigation Proxy
Introduction
Methods
Introduction to Zend\Paginator
Usage
Paginating data collections
The DbSelect adapter
Rendering pages with view scripts
Configuration
Advanced usage
Custom data source adapters
Custom scrolling styles
Caching features
Introduction to Zend\Permissions\Acl
Resources
Roles
Creating the Access Control List
Registering Roles
Defining Access Controls
Querying an ACL
Refining Access Controls
Precise Access Controls
Removing Access Controls
Advanced Usage
Storing ACL Data for Persistence
Writing Conditional ACL Rules with Assertions
Introduction to Zend\Permissions\Rbac
Roles
Permissions
Dynamic Assertions
Methods
Examples
Roles
Permissions
Dynamic Assertions
Progress Bars
Introduction
Basic Usage
Persistent Progress
Standard Adapters
File Upload Handlers
Introduction
Methods of Reporting Progress
Standard Handlers
Introduction to Zend\Serializer
Quick Start
Basic configuration Options
Available Methods
Zend\Serializer\Adapter
The PhpSerialize Adapter
The IgBinary Adapter
The Wddx Adapter
The Json Adapter
The PythonPickle Adapter
The PhpCode Adapter
Introduction to Zend\Server
Zend\Server\Reflection
Introduction
Usage
Zend\ServiceManager
Zend\ServiceManager Quick Start
Using Configuration
Modules as Service Providers
Examples
Delegator service factories
Delegator factory signature
A Delegator factory use case
Lazy Services
Use cases
Setup
Practical example
Configuration
Session Config
Standard Config
Session Config
Custom Configuration
Session Container
Basic Usage
Setting the Default Session Manager
Session Manager
Initializing the Session Manager
Session Compatibility
Session Save Handlers
Cache
DbTableGateway
MongoDB
Custom Save Handlers
Session Storage
Array Storage
Session Storage
Session Array Storage
Custom Storage
Session Validators
Http User Agent
Remote Addr
Custom Validators
Zend\Soap\Server
Zend\Soap\Server constructor
Methods to define Web Service API
Request and response objects handling
Document/Literal WSDL Handling
Zend\Soap\Client
Zend\Soap\Client Constructor
Performing SOAP Requests
WSDL Accessor
Zend\Soap\Wsdl constructor
addMessage() method
addPortType() method
addPortOperation() method
addBinding() method
addBindingOperation() method
addSoapBinding() method
addSoapOperation() method
addService() method
Type mapping
addDocumentation() method
Get finalized WSDL document
AutoDiscovery
AutoDiscovery Introduction
Class autodiscovering
Functions autodiscovering
Autodiscovering Datatypes
WSDL Binding Styles
Zend\Stdlib\Hydrator
HydratorInterface
Usage
Available Implementations
Zend\Stdlib\Hydrator\Filter
Filter implementations
Remove filters
Add filters
Use the composite for complex filters
Using the provider interface
Zend\Stdlib\Hydrator\Strategy
Adding strategies to the hydrators
Available implementations
Writing custom strategies
AggregateHydrator
Installation requirements
Basic usage
Advanced use cases
Introduction to Zend\Tag
Creating tag clouds with Zend\Tag\Cloud
Decorators
Introduction to Zend\Test
Unit testing with PHPUnit
Setup your TestCase
Testing your Controllers and MVC Applications
Assertions
Request Assertions
CSS Selector Assertions
XPath Assertions
Redirect Assertions
Response Header Assertions
Zend\Text\Figlet
Introduction
Basic Usage
Zend\Text\Table
Introduction
Basic Usage
Zend\Uri
Overview
Creating a New URI
Manipulating an Existing URI
Common Instance Methods
Introduction to Zend\Validator
What is a validator?
Basic usage of validators
Customizing messages
Translating messages
Standard Validation Classes
Alnum
Alpha
Supported options for Zend\I18n\Validator\Alpha
Basic usage
Using whitespaces
Using different languages
Barcode
Supported options for Zend\Validator\Barcode
Basic usage
Optional checksum
Writing custom adapters
Between
Supported options for Zend\Validator\Between
Default behaviour for Zend\Validator\Between
Validation exclusive the border values
Callback
Supported options for Zend\Validator\Callback
Basic usage
Usage with closures
Usage with class-based callbacks
Adding options
CreditCard
Supported options for Zend\Validator\CreditCard
Basic usage
Accepting defined credit cards
Validation by using foreign APIs
Ccnum
Date
Supported options for Zend\Validator\Date
Default date validation
Self defined date validation
Db\RecordExists and Db\NoRecordExists
Supported options for Zend\Validator\Db\*
Basic usage
Excluding records
Database Schemas
Using a Select object
Digits
Supported options for Zend\Validator\Digits
Validating digits
EmailAddress
Basic usage
Options for validating Email Addresses
Complex local parts
Validating only the local part
Validating different types of hostnames
Checking if the hostname actually accepts email
Validating International Domains Names
Validating Top Level Domains
Setting messages
File Validation Classes
Crc32
ExcludeExtension
ExcludeMimeType
Exists
Extension
Hash
ImageSize
IsCompressed
IsImage
Md5
MimeType
NotExists
Sha1
Size
UploadFile
WordCount
Float
Supported options for Zend\I18n\Validator\Float
Simple float validation
Localized float validation
GreaterThan
Supported options for Zend\Validator\GreaterThan
Basic usage
Validation inclusive the border value
Hex
Supported options for Zend\Validator\Hex
Hostname
Supported options for Zend\Validator\Hostname
Basic usage
Validating different types of hostnames
Validating International Domains Names
Validating Top Level Domains
Iban
Supported options for Zend\Validator\Iban
IBAN validation
Identical
Supported options for Zend\Validator\Identical
Basic usage
Identical objects
Form elements
Strict validation
Configuration
InArray
Supported options for Zend\Validator\InArray
Simple array validation
Array validation modes
Recursive array validation
Ip
Supported options for Zend\Validator\Ip
Basic usage
Validate IPv4 or IPV6 alone
Isbn
Supported options for Zend\Validator\Isbn
Basic usage
Setting an explicit ISBN validation type
Specifying a separator restriction
LessThan
Supported options for Zend\Validator\LessThan
Basic usage
Validation inclusive the border value
NotEmpty
Supported options for Zend\Validator\NotEmpty
Default behaviour for Zend\Validator\NotEmpty
Changing behaviour for Zend\Validator\NotEmpty
PostCode
Constructor options
Supported options for Zend\Validator\PostCode
Regex
Supported options for Zend\Validator\Regex
Validation with Zend\Validator\Regex
Pattern handling
Sitemap Validators
Sitemap\Changefreq
Sitemap\Lastmod
Sitemap\Loc
Sitemap\Priority
Supported options for Zend\Validator\Sitemap_*
Step
Supported options for Zend\Validator\Step
Basic usage
Using floating-point values
StringLength
Supported options for Zend\Validator\StringLength
Default behaviour for Zend\Validator\StringLength
Limiting the maximum allowed length of a string
Limiting the minimal required length of a string
Limiting a string on both sides
Encoding of values
File Validation Classes
Crc32
ExcludeExtension
ExcludeMimeType
Exists
Extension
Hash
ImageSize
IsCompressed
IsImage
Md5
MimeType
NotExists
Sha1
Size
UploadFile
WordCount
Validator Chains
Overview
Writing Validators
Overview
Creating a Simple Validation Class
Writing a Validation Class having Dependent Conditions
Validation with Independent Conditions, Multiple Reasons for Failure
Validation Messages
Using pre-translated validation messages
Limit the size of a validation message
Getting the Zend Framework Version
Overview
Example of the compareVersion() Method
Example of the getLatest() Method
Zend\View Quick Start
Overview
Usage
The PhpRenderer
Usage
Options and Configuration
Additional Methods
PhpRenderer View Scripts
Escaping Output
The ViewEvent
Order of events
ViewEvent::EVENT_RENDERER
ViewEvent::EVENT_RENDERER_POST
ViewEvent::EVENT_RESPONSE
View Helpers
Introduction
Included Helpers
View Helper - BasePath
Introduction
Basic Usage
View Helper - Cycle
Introduction
Basic Usage
Working with two or more cycles
View Helper - Doctype
Introduction
Basic Usage
Retrieving the Doctype
Choosing a Doctype to Use with the Open Graph Protocol
Zend MVC View Manager
FlashMessenger Helper
Introduction
Basic Usage
CSS Layout
HTML Layout
Sample Modification for Twitter Bootstrap 3
Alternative Configuration of the ViewHelper Layout
Gravatar Helper
Introduction
Basic Usage
Custom Settings
View Helper - HeadLink
Introduction
Basic Usage
View Helper - HeadMeta
Introduction
Basic Usage
Usage with XHTML1_RDFA doctype
View Helper - HeadScript
Introduction
Basic Usage
Capturing Scripts
View Helper - HeadStyle
Introduction
Basic Usage
Capturing Style Declarations
View Helper - HeadTitle
Introduction
Basic Usage
View Helper - HtmlList
Introduction
Basic Usage
View Helper - HTML Object
Introduction
Flash helper
Customizing the object by passing additional arguments
View Helper - Identity
Introduction
Basic Usage
Using with ServiceManager
View Helper - InlineScript
Introduction
Basic Usage
Capturing Scripts
View Helper - JSON
Introduction
Basic Usage
View Helper - Partial
Introduction
Basic Usage
Using PartialLoop to Render Iterable Models
View Helper - Placeholder
Introduction
Basic Usage
Aggregate Content
Capture Content
Concrete Implementations
View Helper - URL
Basic Usage
Advanced usage of helpers
Registering Helpers
Writing Custom Helpers
Registering Concrete Helpers
Introduction to Zend\XmlRpc
Quick Start
Zend\XmlRpc\Client
Introduction
Method Calls
Types and Conversions
Server Proxy Object
Error Handling
Server Introspection
From Request to Response
HTTP Client and Testing
Zend\XmlRpc\Server
Introduction
Basic Usage
Server Structure
Anatomy of a webservice
Conventions
Utilizing Namespaces
Custom Request Objects
Custom Responses
Handling Exceptions via Faults
Caching Server Definitions Between Requests
Usage Examples
Performance optimization
ZendService\Akismet
Introduction
Verify an API key
Check for spam
Submitting known spam
Submitting false positives (ham)
Zend-specific Methods
ZendService\Amazon
Introduction
Country Codes
Looking up a Specific Amazon Item by ASIN
Performing Amazon Item Searches
Using the Alternative Query API
ZendService\Amazon Classes
ZendService\Amazon\S3
Introduction
Registering with Amazon S3
API Documentation
Features
Getting Started
Bucket operations
Object operations
Data Streaming
Stream wrapper
ZendService\Amazon\Sqs
Introduction
Registering with Amazon SQS
API Documentation
Features
Getting Started
Queue operations
Message operations
ZendService\Amazon\Ec2
Introduction
What is Amazon Ec2?
Static Methods
ZendService\Amazon\Ec2: CloudWatch Monitoring
CloudWatch Usage
ZendService\Amazon\Ec2: Elastic Block Storage (EBS)
Create EBS Volumes and Snapshots
Describing EBS Volumes and Snapshots
Attach and Detaching Volumes from Instances
Deleting EBS Volumes and Snapshots
ZendService\Amazon\Ec2: Elastic IP Addresses
Allocating a new Elastic IP
ZendService\Amazon\Ec2: Instances
Instance Types
Running Amazon EC2 Instances
Amazon Instance Utilities
ZendService\Amazon\Ec2: Keypairs
Creating a new Amazon Keypair
Deleting an Amazon Keypair
Describe an Amazon Keypair
ZendService\Amazon\Ec2: Regions and Availability Zones
Amazon EC2 Regions
Amazon EC2 Availability Zones
ZendService\Amazon\Ec2: Reserved Instances
How Reserved Instances are Applied
Reserved Instances Usage
ZendService\Amazon\Ec2: Security Groups
Security Group Maintenance
Authorizing Access
Revoking Access
ZendService\Amazon\Ec2: Windows Instances
Windows Instances Usage
ZendService\Apple\Apns
Introduction
Quick Start
Feedback Service
ZendService\Audioscrobbler
Introduction
Users
Artists
Tracks
Tags
Groups
Forums
ZendService\Delicious
Introduction
Retrieving posts
ZendService\Delicious\PostList
Editing posts
Deleting posts
Adding new posts
Tags
Bundles
Public data
HTTP client
ZendService\DeveloperGarden
Introduction
BaseUserService
IP Location
Local Search
Send SMS
SMS Validation
Voice Call
ConferenceCall
Performance and Caching
ZendService\Flickr
Introduction
Finding Flickr Users’ Photos and Information
Finding photos From a Group Pool
Retrieving Flickr Image Details
ZendService\Flickr Result Classes
ZendService\Google\Gcm
Introduction
Quick Start
ZendService\LiveDocx
Introduction
ZendService\LiveDocx\MailMerge
ZendService\Nirvanix
Introduction
Registering with Nirvanix
API Documentation
Features
Getting Started
Understanding the Proxy
Examining Results
Handling Errors
ZendService\Rackspace
Introduction
Registering with Rackspace
Cloud Files
Cloud Servers
Available Methods
ZendService\Rackspace\Servers
Overview
Terminology
Quick Start
Available Methods
Examples
ZendService\Rackspace\Files
Overview
Quick Start
Available Methods
Examples
ZendService\ReCaptcha
Introduction
Simplest use
Hiding email addresses
ZendService\SlideShare
Getting Started with ZendService\SlideShare
The SlideShow object
Retrieving a single slide show
Retrieving Groups of Slide Shows
ZendService\SlideShare Caching policies
Changing the behavior of the HTTP Client
ZendService\StrikeIron
Overview
Registering with StrikeIron
Getting Started
Making Your First Query
Examining Results
Handling Errors
Checking Your Subscription
ZendService\StrikeIron: Bundled Services
ZIP Code Information
U.S. Address Verification
Sales & Use Tax Basic
ZendService\StrikeIron: Advanced Uses
Using Services by WSDL
Viewing SOAP Transactions
ZendService\Technorati
Introduction
Getting Started
Making Your First Query
Consuming Results
Handling Errors
Checking Your API Key Daily Usage
Available Technorati Queries
ZendService\Technorati Classes
ZendService\Twitter
Introduction
Quick Start
Authentication
Account Methods
Application Methods
Blocking Methods
Direct Message Methods
Favorites Methods
Friendship Methods
Search Methods
Status Methods
User Methods
ZendService\WindowsAzure
Introduction
Installing the Windows Azure SDK
API Documentation
Features
Architecture
ZendService\WindowsAzure\Storage\Blob
API Examples
Root container
Blob storage stream wrapper
Shared Access Signature
ZendService\WindowsAzure\Storage\Table
Operations on tables
Operations on entities
Table storage session handler
ZendService\WindowsAzure\StorageQueue
API Examples
Copyright Information
Zend Framework 2
Docs
»
Edit on GitHub
Please activate JavaScript to enable the search functionality.