Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8230507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:09:43+00:00 2026-06-07T17:09:43+00:00

How can I integrate zendframework 2 library with my Symfony 2 application? How to

  • 0

How can I integrate zendframework 2 library with my Symfony 2 application? How to autoload and how to use it? I would like to use some classes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:09:44+00:00Added an answer on June 7, 2026 at 5:09 pm

    To integrate Zendframework 2 into Symfony 2, If you’re using the Symfony Standard Distribution, add the following to the deps file at the root of your project:

    [zf2]
        git=https://github.com/zendframework/zf2.git
    

    Now, update the vendor libraries by running:

    php bin/vendors update
    

    If you are not using Symfony Standard Distribution, you will have to clone from github in vendor folder.

    Next, add the Zend namespace to the app/autoload.php file so that these libraries can be autoloaded.

    $loader->registerNamespaces(array(
        ...
        'Zend' => __DIR__ . '/../vendor/zf2/library',
    ));
    

    Then It’s done, You can use zendframework library. For example I will show Zend\Json class usage in the default symfony 2 application.
    Open src/Acme/DemoBundle/Controller/DemoController.php and edit indexAction method the code like below:

    use Zend\Json\Json;
    ...
    public function indexAction()
    {
        $data = array('zendframework2' => 'symfony2');
        $encodedData = Json::encode($data);
        var_dump($encodedData);
        return array();
    }
    

    In this example I am using a zendframework class to convert an array to json

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can I integrate the JasperReports Viewer to my Swing application as like if I
I'd like to create an application that can integrate with Twitter. So I went
I like to know how one can integrate the Qt libraries into an Enterprise
By enable the option called Application supports iTunes file sharing , I can integrate
You can integrate Facebook Connect in your iPhone application to interact with Facebook and
I want to know if i can integrate the paypal without using paypal library
I'm looking for a synthesizer that I can integrate with my .NET application. Is
Anybody know how can integrate google+ in a flex mobile application. While i tried
Is there any way that i can integrate a Glassfish application server inside my
I have Symbolic C++ (the version that can integrate with V, there is no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.