SlideShare a Scribd company logo
1 of 35
Zend Products and PHP for IBMi




Shlomo Vanunu
Zend Global Services
                               © All rights reserved. Zend Technologies, Inc.
CV

    • Shlomo Vanunu is a senior consultant in the Zend lab
      located in Ramat Gan Israel and is a part of the i5 Global
      Services Team, involved in the development of the Zend for
      i5/OS installation base for IBMi.
    • At the Zend IBMi Global Services, he provides technical
      services support and education for Zend Products for IBMi
      and related technologies on IBMi.
    • Shlomo has worked in the IT industry for 25 years and has
      experience with IBMi OS, programming and several other OS
      variants.




2                         © All rights reserved. Zend Technologies, Inc.
Agenda

• IBM/ZEND Relationship and Offering
• Zend Server/Studio Integration
• Open Source Toolkit/Compatibility Wrapper
• Zend Framework
• QA




3                      © All rights reserved. Zend Technologies, Inc.
Increasing the Maturity of the PHP Application Lifecycle




A PHP Server for            The RightScale Zend                               A professional-grade
business-critical PHP       PHP Solution Pack                                 development environment
applications that require   enables you to easily                             that includes PHP code
performance, reliability    manage a PHP runtime                              editing, debugging, profili
and security.               environment in the                                ng, unit
                            cloud.                                            testing, diagnostics and
                                                                              more.

4                            © All rights reserved. Zend Technologies, Inc.
Zend Server 5.6 for IBMi
    Key Features
      Shipping with IBMi 6.1 & 7.1

      New Open Source Toolkit

      Performance enhancements

      PHP 5.3.8

      Zend Framework 1.11.3

      Application Deployment

      PTF Update as well as full package
         • Hotfix




5                           © All rights reserved. Zend Technologies, Inc.
Zend Server 5.6 for IBMi




6   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Zend Products for IBMi Prerequisites
• Prerequisite IBMi License programs –
   GO LICPGM  Select option 10. Display installed licensed programs



• Check the list of installed license programs:
   5722SS1   30       Qshell
   5722SS1   33        Portable App Solutions Environment
   5722SS1   13        System Openness Includes
   5722DG1 *BASE      IBM HTTP Server for i5/OS
   5733SC1   *BASE    IBM Portable Utilities for i5/OS

   5733SC1   1         OpenSSH, OpenSSL, zlib



                               © All rights reserved. Zend Technologies, Inc.   #
Installation
• Interactive Installation
 RSTLICPGM LICPGM(2ZSVRPI) DEV(*SAVF) SAVF(QGPL/ZSVRSAVF)

• Objects created
   The ZENDSVR library,
   /usr/local/Zendsvr directory,
   /www/zendsvr directory (web document root)
   Zend-supplied user profiles
   The Zendsvr subsystem and the HTTP servers
• Batch/Silent Install
SBMJOB (RSTLICPGM LICPGM(2ZSVRPI) DEV(*SAVF) SAVF(QGPL/ZSVRSAVF))



                              © All rights reserved. Zend Technologies, Inc.   #
Configuration - Setup Menu




                   © All rights reserved. Zend Technologies, Inc.   #
Configuration -   Setup Menu




                    © All rights reserved. Zend Technologies, Inc.   #
Zend Server, Zend Studio
           Integration




 11
Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Zend Server Integration

• Zend Server
   A value-added PHP install for IBMi, Linux, Windows, Mac OS X

   Community Edition (CE) and regular edition

   Installs a copy of Zend Framework
     • PHP.INI specifies “/usr/local/zendsvr/share/ZendFramework/” in its
       include_path variable
     • All your PHP applications will be able to find the /library/zend folder without
       any further work



• http://www.zend.com/en/products/server/



                            © All rights reserved. Zend Technologies, Inc.
Zend Studio Integration

     • Zend Studio
           Integrated Development Environment (IDE)

           IBMi edition is free thanks to IBM/Zend relationship

           Also installs its own copy of Zend Framework! (on your PC)



     • http://www.zend.com/en/products/studio/




13   Insert->Header & Footer    © All rights reserved. Zend Technologies, Inc.
Zend Framework

     • Zend Framework
          Can work with any PHP 5.x installation, but of course it works
              best with the Zend Products for IBMi
          Installed automatically with Zend Server for IBMi
              /usr/local/zendsvr/share/ZendFramework/library/zend
          Updates available at
              http://framework.zend.com/download/latest
          Unzip into /usr/local… (see above) or your ZF library folder



     • www.framework.zend.com


14   Insert->Header & Footer      © All rights reserved. Zend Technologies, Inc.
Zend DBi

     • Drop in replacement for MySQL
     • Updates existing MySQL installation
     • DB2 storage engine included




15   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Zend DBi – DB2/MySQL
• Zend DBi: MySQL Replacement for IBMi
     Use PHP's most popular database on the IBMi
     MySQL has become the most commonly used database for PHP applications.

     Zend's commitment to the IBMi platform, Zend DBi is available as a compatible
        drop-in replacement for MySQL on IBMi.
     Zend DBi erases any uncertainty about the future of IBMi as a supported MySQL
        platform:
      built using the same open-source code used to build MySQL, and will be kept
        up to date by Zend and IBM with all features and bug fixes introduced in
        MySQL.
     Zend DBi is part of the enterprise-ready PHP technology stack for IBMi that
        allows users to leverage open and industry standard solutions, while keeping
        their web and mobile workloads on existing IBMi systems where
        databases, business logic, and legacy applications reside.

16   Insert->Header & Footer      © All rights reserved. Zend Technologies, Inc.
PHP Open Source Toolkit
 Access your IBMi




17             © All rights reserved. Zend Technologies, Inc.
Open Source PHP Toolkit

• Open Source!
  Community Involvement can improve it

  Customer can tweak!

  Usher new era for IBMi developer!!!

• Collaboration between IBM and Zend
• Built on ILE RPG, Stored procedures and pure PHP
• Speed improvement over current toolkit
• Cross Platform Solution, run PHP scripts on desktop to IBMi
• Object Oriented, but not too much!


                       © All rights reserved. Zend Technologies, Inc.
New Toolkit Has Two Components
• IBM
  XML Service

• Zend
  Series of classes that “wrap” the IBM project

  ToolkitService() Class

  Zend built the PHP wrapper

  Let your i5 functions use the new toolkit under the covers

• No OO training required to use them!!!
• Need IBM PTF’s! (See Release Notes!)



                            © All rights reserved. Zend Technologies, Inc.
XML Service lives at YiPs!




20   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Get your own copy of the code!
     • RPG, XML & Stored Procedures

                                         http://www.youngiprofessionals.com




21   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Toolkit Architecture


       DB2
                               DB2 Extension
     Functions
                                 or ODBC                         DRDA                     DB2
                                XML
                                                                                         Stored
                                   PHP                                                 Procedures
        OO                                                                                 &
                                  Classes
     Program                                                                              Data
                                  Toolkit
       Calls
                                    API
                                                                                             XML
                                                                                                                 HLL’s
                                         OO Request                                                            RPG, COBOL
        i5                                                                                RPG
                               Compatibility                                           XMLSERVICE
     functions
                                 Wrapper                                                                        System
                                                                                                   Parm Data
                                                                                                               Artifacts

22   Insert->Header & Footer          © All rights reserved. Zend Technologies, Inc.
What are the major components?

     • Program calls
     • Operating System functions
     • SQL access




23   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Toolkit Overview

• Setting Database Connections
   $ToolkitServiceObj =
      ToolkitService::getInstance($Host, $USER, $PASSWORD”, $ExtensionPrefix)
  

• Setting the XML Service Options
   $ToolkitServiceObj->setToolkitServiceParams(array('lib=>$XMLServiceLib 'plug' =>
      $Plug, internalKey'=>$InternalKey, controlkey'=>$ControlKey, 'debugflag'=>$debug, 'lang
      uage'=>$Encoding));


   include_once 'authorization.php';
      include_once '../API/ToolkitService.php';

      $ToolkitServiceObj =
      ToolkitService::getInstance(“*LOCAL”, “USER”, “PASSWORD”, “ibm_db2”);


                                   © All rights reserved. Zend Technologies, Inc.
Toolkit Overview
• The CLCommand Method


  CLInteractiveCommand – Will return the command message or
   command return values.
     $message = $obj->CLInteractiveCommand($Command);


  CLcommand – Will run the command in the batch without returning
   command messages or command return values.
     $obj->CLCommand($Command);




                         © All rights reserved. Zend Technologies, Inc.
Toolkit Overview
• The PGMCall Method
  The program call method allows calling a program (*PGM) or service
   program (*SRVPGM).

  PgmCall($Program, $Library, $Parameters, $ReturnValue, $Function)


  Define Program Parameters Methods
        The AddParameterPackDec
        The AddParameterZoned
        The AddParameterInt
        The AddParameterUInt
        The AddParameterFloat
        The AddParameterBin
        The AddDataStructure
        The SetParameterValue

                               © All rights reserved. Zend Technologies, Inc.
Toolkit Overview
• Define Program Parameters Methods
     AddParameterChar Method
        AddParameterChar( $IOType, , $Size, $Comment, $Name, $Value);

     AddParameterPackDec Method
        AddParameterPackDec ($IOType, , $Size, $Comment, $Name, $Value) ;

     AddParameterZoned Method
         AddParameterZoned ($IOType, , $Size, $Comment, $Name, $Value)
        $param[] = $ToolkitServiceObj->AddParameterPackDec('both',12,2,'CheckAmt', 'amount', '2000.25');



     SetParameterValue
         SetParameterValue ($Name, $Value)
                   $ToolkitServiceObj->SetParameterValue('code', '2');

     $ToolkitServiceObj->disconnect()


27   Insert->Header & Footer                 © All rights reserved. Zend Technologies, Inc.
Samples!
• Located off the document root in directory NewToolkit!
• Contains sample program call, etc…




                      © All rights reserved. Zend Technologies, Inc.
Zend Framework




29             © All rights reserved. Zend Technologies, Inc.
Overview

• Zend Framework
   Open source framework

   Develop secure web applications and web services with PHP 5

   Implemented using object oriented code and design



• Unique component structure
  Each component designed with few dependencies on other
   components
  Many loosely coupled components that you can use more or less
   independently or “use-at-will”


                       © All rights reserved. Zend Technologies, Inc.
Overview

• Zend Framework also
  Provides an advanced Model-View-Controller (MVC)
   implementation
  Used to establish a basic structure for your Zend Framework
   applications
  A database abstraction that is simple to use

  Forms/Views components that implements HTML form rendering

  Validation and Filtering

  Allows developers to consolidates all operations




                        © All rights reserved. Zend Technologies, Inc.
Overview

     • Zend Framework Components list




32   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
33   Zend Framework home page   © All rights reserved. Zend Technologies, Inc.
Resources
     • Recorded Webinars
          http://www.zend.com/en/resources/webinars/i5-os



     • Zend Server for IBM i main page, link to downloads
          http://www.zend.com/en/products/server/zend-server-ibm-i



     • Zend Server manual:
          PDF: http://www.zend.com/topics/Zend-Server-5-for-IBMi-Reference-Manual.pdf

          Online: http://files.zend.com/help/Zend-Server-5/zend-
              server.htm#installation_guide.htm




34   Insert->Header & Footer              © All rights reserved. Zend Technologies, Inc.
Books!




     • Gutmans - PHP 5 Power Programming
     • White - PHP 5 in Practice
     • Schroeder/Olen – The IBM i
35                       © All rights reserved. Zend Technologies, Inc.

More Related Content

What's hot

From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm iFrom Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm iAlan Seiden
 
IBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP DevelopersIBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP DevelopersAlan Seiden
 
Web Performance First Aid
Web Performance First AidWeb Performance First Aid
Web Performance First AidAlan Seiden
 
PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i TutorialZendCon
 
Performance tuning with zend framework
Performance tuning with zend frameworkPerformance tuning with zend framework
Performance tuning with zend frameworkAlan Seiden
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel TourPHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel TourRod Flohr
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM iRunning open source PHP applications on you IBM i
Running open source PHP applications on you IBM iProximity Group
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreInstall MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreRod Flohr
 
Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i  Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i Zend by Rogue Wave Software
 
Zend_Tool: Practical use and Extending
Zend_Tool: Practical use and ExtendingZend_Tool: Practical use and Extending
Zend_Tool: Practical use and ExtendingZendCon
 
PHP on Windows - What's New
PHP on Windows - What's NewPHP on Windows - What's New
PHP on Windows - What's NewZendCon
 
Zend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZendCon
 
Getting Started with SQL Server Compact Edition 3.51
Getting Started with SQL Server Compact Edition 3.51Getting Started with SQL Server Compact Edition 3.51
Getting Started with SQL Server Compact Edition 3.51Mark Ginnebaugh
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the futureWeb Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the futureToru Kawamura
 
PHP Frameworks Review - Mar 19 2015
PHP Frameworks Review - Mar 19 2015PHP Frameworks Review - Mar 19 2015
PHP Frameworks Review - Mar 19 2015kyphpug
 
Introduction to column oriented databases in PHP
Introduction to column oriented databases in PHPIntroduction to column oriented databases in PHP
Introduction to column oriented databases in PHPZend by Rogue Wave Software
 
Extending ZF & Extending With ZF
Extending ZF & Extending With ZFExtending ZF & Extending With ZF
Extending ZF & Extending With ZFRalph Schindler
 

What's hot (19)

From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm iFrom Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm i
 
IBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP DevelopersIBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP Developers
 
Web Performance First Aid
Web Performance First AidWeb Performance First Aid
Web Performance First Aid
 
PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i Tutorial
 
Performance tuning with zend framework
Performance tuning with zend frameworkPerformance tuning with zend framework
Performance tuning with zend framework
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel TourPHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel Tour
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM iRunning open source PHP applications on you IBM i
Running open source PHP applications on you IBM i
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreInstall MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
 
Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i  Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i
 
Zend_Tool: Practical use and Extending
Zend_Tool: Practical use and ExtendingZend_Tool: Practical use and Extending
Zend_Tool: Practical use and Extending
 
PHP on Windows - What's New
PHP on Windows - What's NewPHP on Windows - What's New
PHP on Windows - What's New
 
Zend Core on IBM i - Security Considerations
Zend Core on IBM i - Security ConsiderationsZend Core on IBM i - Security Considerations
Zend Core on IBM i - Security Considerations
 
Getting Started with SQL Server Compact Edition 3.51
Getting Started with SQL Server Compact Edition 3.51Getting Started with SQL Server Compact Edition 3.51
Getting Started with SQL Server Compact Edition 3.51
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the futureWeb Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
 
PHP Frameworks Review - Mar 19 2015
PHP Frameworks Review - Mar 19 2015PHP Frameworks Review - Mar 19 2015
PHP Frameworks Review - Mar 19 2015
 
Require js training
Require js trainingRequire js training
Require js training
 
Introduction to column oriented databases in PHP
Introduction to column oriented databases in PHPIntroduction to column oriented databases in PHP
Introduction to column oriented databases in PHP
 
Zend Framework
Zend FrameworkZend Framework
Zend Framework
 
Extending ZF & Extending With ZF
Extending ZF & Extending With ZFExtending ZF & Extending With ZF
Extending ZF & Extending With ZF
 

Similar to Zend Products and PHP for IBMi

Getting started with PHP on IBM i
Getting started with PHP on IBM iGetting started with PHP on IBM i
Getting started with PHP on IBM iCOMMON Europe
 
PHP Apps on the Move - Migrating from In-House to Cloud
PHP Apps on the Move - Migrating from In-House to Cloud  PHP Apps on the Move - Migrating from In-House to Cloud
PHP Apps on the Move - Migrating from In-House to Cloud RightScale
 
What's new with Zend server
What's new with Zend serverWhat's new with Zend server
What's new with Zend serverCOMMON Europe
 
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
Red Hat for IBM System z IBM Enterprise2014 Las Vegas Red Hat for IBM System z IBM Enterprise2014 Las Vegas
Red Hat for IBM System z IBM Enterprise2014 Las Vegas Filipe Miranda
 
High performance PHP: Scaling and getting the most out of your infrastructure
High performance PHP: Scaling and getting the most out of your infrastructureHigh performance PHP: Scaling and getting the most out of your infrastructure
High performance PHP: Scaling and getting the most out of your infrastructuremkherlakian
 
The i7 Framework for System-i
The i7 Framework for System-iThe i7 Framework for System-i
The i7 Framework for System-iIvo Jansch
 
How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?Zend by Rogue Wave Software
 
Integrating PHP With System-i using Web Services
Integrating PHP With System-i using Web ServicesIntegrating PHP With System-i using Web Services
Integrating PHP With System-i using Web ServicesIvo Jansch
 
Ria Applications And PHP
Ria Applications And PHPRia Applications And PHP
Ria Applications And PHPJohn Coggeshall
 
Red Hat for Power Systems IBM Enterprise2014 Las Vegas
Red Hat for Power Systems IBM Enterprise2014 Las VegasRed Hat for Power Systems IBM Enterprise2014 Las Vegas
Red Hat for Power Systems IBM Enterprise2014 Las VegasFilipe Miranda
 
Microsoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on WindowsMicrosoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on WindowsEnterprise PHP Center
 
Ibm i-modernization
Ibm i-modernizationIbm i-modernization
Ibm i-modernizationTom Presotto
 
DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)dpc
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Mack Hardy
 
(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systems(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systemssosorry
 

Similar to Zend Products and PHP for IBMi (20)

Getting started with PHP on IBM i
Getting started with PHP on IBM iGetting started with PHP on IBM i
Getting started with PHP on IBM i
 
Zend server for IBM i update 5.6
Zend server for IBM i update 5.6Zend server for IBM i update 5.6
Zend server for IBM i update 5.6
 
PHP Apps on the Move - Migrating from In-House to Cloud
PHP Apps on the Move - Migrating from In-House to Cloud  PHP Apps on the Move - Migrating from In-House to Cloud
PHP Apps on the Move - Migrating from In-House to Cloud
 
What's new with Zend server
What's new with Zend serverWhat's new with Zend server
What's new with Zend server
 
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
Red Hat for IBM System z IBM Enterprise2014 Las Vegas Red Hat for IBM System z IBM Enterprise2014 Las Vegas
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
 
High performance PHP: Scaling and getting the most out of your infrastructure
High performance PHP: Scaling and getting the most out of your infrastructureHigh performance PHP: Scaling and getting the most out of your infrastructure
High performance PHP: Scaling and getting the most out of your infrastructure
 
Lamp Zend Security
Lamp Zend SecurityLamp Zend Security
Lamp Zend Security
 
The i7 Framework for System-i
The i7 Framework for System-iThe i7 Framework for System-i
The i7 Framework for System-i
 
A Tale of Two Toolkits
A Tale of Two ToolkitsA Tale of Two Toolkits
A Tale of Two Toolkits
 
green
greengreen
green
 
How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?
 
Zend
ZendZend
Zend
 
Integrating PHP With System-i using Web Services
Integrating PHP With System-i using Web ServicesIntegrating PHP With System-i using Web Services
Integrating PHP With System-i using Web Services
 
Ria Applications And PHP
Ria Applications And PHPRia Applications And PHP
Ria Applications And PHP
 
Red Hat for Power Systems IBM Enterprise2014 Las Vegas
Red Hat for Power Systems IBM Enterprise2014 Las VegasRed Hat for Power Systems IBM Enterprise2014 Las Vegas
Red Hat for Power Systems IBM Enterprise2014 Las Vegas
 
Microsoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on WindowsMicrosoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on Windows
 
Ibm i-modernization
Ibm i-modernizationIbm i-modernization
Ibm i-modernization
 
DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)DPC2007 Zend Framework (Gaylord Aulke)
DPC2007 Zend Framework (Gaylord Aulke)
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
 
(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systems(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systems
 

Recently uploaded

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

Recently uploaded (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Zend Products and PHP for IBMi

  • 1. Zend Products and PHP for IBMi Shlomo Vanunu Zend Global Services © All rights reserved. Zend Technologies, Inc.
  • 2. CV • Shlomo Vanunu is a senior consultant in the Zend lab located in Ramat Gan Israel and is a part of the i5 Global Services Team, involved in the development of the Zend for i5/OS installation base for IBMi. • At the Zend IBMi Global Services, he provides technical services support and education for Zend Products for IBMi and related technologies on IBMi. • Shlomo has worked in the IT industry for 25 years and has experience with IBMi OS, programming and several other OS variants. 2 © All rights reserved. Zend Technologies, Inc.
  • 3. Agenda • IBM/ZEND Relationship and Offering • Zend Server/Studio Integration • Open Source Toolkit/Compatibility Wrapper • Zend Framework • QA 3 © All rights reserved. Zend Technologies, Inc.
  • 4. Increasing the Maturity of the PHP Application Lifecycle A PHP Server for The RightScale Zend A professional-grade business-critical PHP PHP Solution Pack development environment applications that require enables you to easily that includes PHP code performance, reliability manage a PHP runtime editing, debugging, profili and security. environment in the ng, unit cloud. testing, diagnostics and more. 4 © All rights reserved. Zend Technologies, Inc.
  • 5. Zend Server 5.6 for IBMi Key Features Shipping with IBMi 6.1 & 7.1 New Open Source Toolkit Performance enhancements PHP 5.3.8 Zend Framework 1.11.3 Application Deployment PTF Update as well as full package • Hotfix 5 © All rights reserved. Zend Technologies, Inc.
  • 6. Zend Server 5.6 for IBMi 6 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 7. Zend Products for IBMi Prerequisites • Prerequisite IBMi License programs – GO LICPGM  Select option 10. Display installed licensed programs • Check the list of installed license programs: 5722SS1 30 Qshell 5722SS1 33 Portable App Solutions Environment 5722SS1 13 System Openness Includes 5722DG1 *BASE IBM HTTP Server for i5/OS 5733SC1 *BASE IBM Portable Utilities for i5/OS 5733SC1 1 OpenSSH, OpenSSL, zlib © All rights reserved. Zend Technologies, Inc. #
  • 8. Installation • Interactive Installation RSTLICPGM LICPGM(2ZSVRPI) DEV(*SAVF) SAVF(QGPL/ZSVRSAVF) • Objects created The ZENDSVR library, /usr/local/Zendsvr directory, /www/zendsvr directory (web document root) Zend-supplied user profiles The Zendsvr subsystem and the HTTP servers • Batch/Silent Install SBMJOB (RSTLICPGM LICPGM(2ZSVRPI) DEV(*SAVF) SAVF(QGPL/ZSVRSAVF)) © All rights reserved. Zend Technologies, Inc. #
  • 9. Configuration - Setup Menu © All rights reserved. Zend Technologies, Inc. #
  • 10. Configuration - Setup Menu © All rights reserved. Zend Technologies, Inc. #
  • 11. Zend Server, Zend Studio Integration 11 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 12. Zend Server Integration • Zend Server  A value-added PHP install for IBMi, Linux, Windows, Mac OS X  Community Edition (CE) and regular edition  Installs a copy of Zend Framework • PHP.INI specifies “/usr/local/zendsvr/share/ZendFramework/” in its include_path variable • All your PHP applications will be able to find the /library/zend folder without any further work • http://www.zend.com/en/products/server/ © All rights reserved. Zend Technologies, Inc.
  • 13. Zend Studio Integration • Zend Studio  Integrated Development Environment (IDE)  IBMi edition is free thanks to IBM/Zend relationship  Also installs its own copy of Zend Framework! (on your PC) • http://www.zend.com/en/products/studio/ 13 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 14. Zend Framework • Zend Framework Can work with any PHP 5.x installation, but of course it works best with the Zend Products for IBMi Installed automatically with Zend Server for IBMi /usr/local/zendsvr/share/ZendFramework/library/zend Updates available at http://framework.zend.com/download/latest Unzip into /usr/local… (see above) or your ZF library folder • www.framework.zend.com 14 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 15. Zend DBi • Drop in replacement for MySQL • Updates existing MySQL installation • DB2 storage engine included 15 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 16. Zend DBi – DB2/MySQL • Zend DBi: MySQL Replacement for IBMi Use PHP's most popular database on the IBMi MySQL has become the most commonly used database for PHP applications. Zend's commitment to the IBMi platform, Zend DBi is available as a compatible drop-in replacement for MySQL on IBMi. Zend DBi erases any uncertainty about the future of IBMi as a supported MySQL platform:  built using the same open-source code used to build MySQL, and will be kept up to date by Zend and IBM with all features and bug fixes introduced in MySQL. Zend DBi is part of the enterprise-ready PHP technology stack for IBMi that allows users to leverage open and industry standard solutions, while keeping their web and mobile workloads on existing IBMi systems where databases, business logic, and legacy applications reside. 16 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 17. PHP Open Source Toolkit Access your IBMi 17 © All rights reserved. Zend Technologies, Inc.
  • 18. Open Source PHP Toolkit • Open Source! Community Involvement can improve it Customer can tweak! Usher new era for IBMi developer!!! • Collaboration between IBM and Zend • Built on ILE RPG, Stored procedures and pure PHP • Speed improvement over current toolkit • Cross Platform Solution, run PHP scripts on desktop to IBMi • Object Oriented, but not too much! © All rights reserved. Zend Technologies, Inc.
  • 19. New Toolkit Has Two Components • IBM XML Service • Zend Series of classes that “wrap” the IBM project ToolkitService() Class Zend built the PHP wrapper Let your i5 functions use the new toolkit under the covers • No OO training required to use them!!! • Need IBM PTF’s! (See Release Notes!) © All rights reserved. Zend Technologies, Inc.
  • 20. XML Service lives at YiPs! 20 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 21. Get your own copy of the code! • RPG, XML & Stored Procedures http://www.youngiprofessionals.com 21 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 22. Toolkit Architecture DB2 DB2 Extension Functions or ODBC DRDA DB2 XML Stored PHP Procedures OO & Classes Program Data Toolkit Calls API XML HLL’s OO Request RPG, COBOL i5 RPG Compatibility XMLSERVICE functions Wrapper System Parm Data Artifacts 22 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 23. What are the major components? • Program calls • Operating System functions • SQL access 23 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 24. Toolkit Overview • Setting Database Connections  $ToolkitServiceObj = ToolkitService::getInstance($Host, $USER, $PASSWORD”, $ExtensionPrefix)  • Setting the XML Service Options  $ToolkitServiceObj->setToolkitServiceParams(array('lib=>$XMLServiceLib 'plug' => $Plug, internalKey'=>$InternalKey, controlkey'=>$ControlKey, 'debugflag'=>$debug, 'lang uage'=>$Encoding));  include_once 'authorization.php'; include_once '../API/ToolkitService.php'; $ToolkitServiceObj = ToolkitService::getInstance(“*LOCAL”, “USER”, “PASSWORD”, “ibm_db2”); © All rights reserved. Zend Technologies, Inc.
  • 25. Toolkit Overview • The CLCommand Method CLInteractiveCommand – Will return the command message or command return values. $message = $obj->CLInteractiveCommand($Command); CLcommand – Will run the command in the batch without returning command messages or command return values. $obj->CLCommand($Command); © All rights reserved. Zend Technologies, Inc.
  • 26. Toolkit Overview • The PGMCall Method The program call method allows calling a program (*PGM) or service program (*SRVPGM). PgmCall($Program, $Library, $Parameters, $ReturnValue, $Function) Define Program Parameters Methods The AddParameterPackDec The AddParameterZoned The AddParameterInt The AddParameterUInt The AddParameterFloat The AddParameterBin The AddDataStructure The SetParameterValue © All rights reserved. Zend Technologies, Inc.
  • 27. Toolkit Overview • Define Program Parameters Methods AddParameterChar Method AddParameterChar( $IOType, , $Size, $Comment, $Name, $Value); AddParameterPackDec Method AddParameterPackDec ($IOType, , $Size, $Comment, $Name, $Value) ; AddParameterZoned Method AddParameterZoned ($IOType, , $Size, $Comment, $Name, $Value) $param[] = $ToolkitServiceObj->AddParameterPackDec('both',12,2,'CheckAmt', 'amount', '2000.25'); SetParameterValue SetParameterValue ($Name, $Value) $ToolkitServiceObj->SetParameterValue('code', '2'); $ToolkitServiceObj->disconnect() 27 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 28. Samples! • Located off the document root in directory NewToolkit! • Contains sample program call, etc… © All rights reserved. Zend Technologies, Inc.
  • 29. Zend Framework 29 © All rights reserved. Zend Technologies, Inc.
  • 30. Overview • Zend Framework  Open source framework  Develop secure web applications and web services with PHP 5  Implemented using object oriented code and design • Unique component structure Each component designed with few dependencies on other components Many loosely coupled components that you can use more or less independently or “use-at-will” © All rights reserved. Zend Technologies, Inc.
  • 31. Overview • Zend Framework also Provides an advanced Model-View-Controller (MVC) implementation Used to establish a basic structure for your Zend Framework applications A database abstraction that is simple to use Forms/Views components that implements HTML form rendering Validation and Filtering Allows developers to consolidates all operations © All rights reserved. Zend Technologies, Inc.
  • 32. Overview • Zend Framework Components list 32 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 33. 33 Zend Framework home page © All rights reserved. Zend Technologies, Inc.
  • 34. Resources • Recorded Webinars http://www.zend.com/en/resources/webinars/i5-os • Zend Server for IBM i main page, link to downloads http://www.zend.com/en/products/server/zend-server-ibm-i • Zend Server manual: PDF: http://www.zend.com/topics/Zend-Server-5-for-IBMi-Reference-Manual.pdf Online: http://files.zend.com/help/Zend-Server-5/zend- server.htm#installation_guide.htm 34 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 35. Books! • Gutmans - PHP 5 Power Programming • White - PHP 5 in Practice • Schroeder/Olen – The IBM i 35 © All rights reserved. Zend Technologies, Inc.