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 641905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:06:48+00:00 2026-05-13T21:06:48+00:00

I devlopp web applications with Zend Framework. For now, I have a huge library,

  • 0

I devlopp web applications with Zend Framework.

For now, I have a huge library, wich contains each an every things, used by a couple of web applications. I am thinking of reorganising it, using the concept of “Module”.

But I am not sure about the difference between Module and Package.

What I understand is :

  • a Module contains a part of a web application (pages, models…)
  • a Package is a group of class in the library

Am I seeing it right ? And how to know where should go my classes (model of a module, or library) ?

Because for example, I have some classes to do the translations. I have “model” classes, to represent a language, a text and its traductions… And I have kind of an “API” class that is just here to translate a string into a language. I would say that I need a module for the model classes and the web interface to edit the traductions, and the API class would go in the library ? Is that right ? Isn’t that weird to have 2 kind of classes, one for the module and one for the library.

I guess that’s an open question about API, librairie and application architecture.

  • 1 1 Answer
  • 2 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-05-13T21:06:48+00:00Added an answer on May 13, 2026 at 9:06 pm

    Modules, in the ZF sense, group concrete, often standalone, application parts:

    Modules allow a developer to group a set of related controllers into a logically organized group. The structure under the modules directory would resemble the structure under the application directory. […] The directory structure for modules should mimic that of the application/ directory in the recommended project structure

    A package on the other hand is a set of classes in a code library that conceptually belong together. For instance, ActionHelpers and ControllerPlugins conceptually belong to the Zend_Controller package. All available Validator classes belong to the package Zend_Validate.

    When using PHPDocumentor you can annotate your code to belong to packages. If you look at ZF’s API Docs, you will see this grouping in effect. Try to find the Zend_Validate_Alpha class.

    See

    • http://framework.zend.com/manual/en/project-structure.project.html
    • http://framework.zend.com/manual/en/project-structure.filesystem.html
    • http://framework.zend.com/apidoc/core/
    • http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.package.pkg.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have experience in WPF and Windows Forms, however have only used the Windows
I have to developp an app that uses Push Notification in a particular way,
My company had an app developp by a freelance, we didnt have an Appstore
I have some questions about construction of UI (I developp with the API 10
We have been having serious trouble getting an application we devlop running with UAC
I have the tas to setup, design (devlop a Template), configure (menus, users, plugins
i'm about to developp a memory game for children like ,i have 6 different
I have devlope application in which i can record audio and store it in
Good afternoon, We have implemented a C++ cKeyArray class to test whether we can
I have installed Visual Studio Express 11 for Windows 8 on the Consumer Preview.

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.