18. Create a new Azure Web Site
Start a new ZF2 app on Azure
Add ZF2 modules
Work with relational data on Azure
Work with non relational data on Azure
Install Windows Azure SDK for PHP
Demonstrate reversibility
PHP Azure Web Site demo
38. With Azure, data can be stored in different
systems like SQL or/and NoSQL databases,
blobs, drives, etc.
Azure provides data management services
for reporting or Big Data computing.
Working with data
39. Azure SQL Database
Azure Table Storage
Azure Blob Storage
Others…
Working with data on Azure
40. $adapter = new ZendDbAdapterAdapter(
array(
'driver' => 'pdo',
'dsn' => '<dsn>'
'database' => '<mysql_db>',
'username' => '<db_user>',
'password' => '<db_user_password>',
'hostname' => '<hostname>',
)
);
Access to MySQL Azure with ZendDb
41. Store and access data with:
Blob (large binary or text data)
Table (non relational data)
Queue (messages)
Azure Storage Services overview
42. Storage in the form of tables
Flexible schema
High performance
REST API
Azure Table Storage
43. Azure Blob Storage
Account Container Blob
cedric
pictures
movies Man of Steel.avi
Beyonce.jpg
Shakira.png
45. Windows Azure SDK for PHP
Zend Framework 2 components
Symfony 2 bundles
Working with PHP on Azure
46. Windows Azure SDK for PHP
Windows Azure SDK for PHP
PHP Client
Librairies
Command
Line Tools
Azure
Emulators
Windows Azure
REST
API
Compute Storage Manage
My PHP application
48. When you deploy an application on the cloud,
the reversibility must be taken into account to
allow execution on premise if you decide to
leave the cloud.
Think reversibility!
49. Switch beetween two configuration files:
config/autoload/module.myfixit-
azure.local.php
config/autoload/module.myfixit-
onpremise.local.php
Switch with env specific config