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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:52:56+00:00 2026-05-14T04:52:56+00:00

so in a folder PayPal i’ve got multiple classes for using their API. i

  • 0

so in a folder PayPal i’ve got multiple classes for using their API.

i want to make a documentation for how to use all the classes in a sequential way. so here is my questions:

  1. how do i create a package for them? cause above each class i used phpdoc tag @package PayPal. is a package in php just a folder?

  2. where do i put documentation for the package? there are best practices for this? a file in the folder named …?

  3. how to put class- or package-specific examples, eg. step 1 bla bla, step 2 bla bla?
    thanks!

  • 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-05-14T04:52:56+00:00Added an answer on May 14, 2026 at 4:52 am

    You can have the same package annotations for multiple classes in separate files. PHP Documentor will collect them and when creating the API Docs, group files with the same package annotation.

    For instance http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Validate.php

    /**
     * @category   Zend
     * @package    Zend_Validate
     * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
     * @license    http://framework.zend.com/license/new-bsd     New BSD License
     */
    class Zend_Validate implements Zend_Validate_Interface
    

    and http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Validate/Alnum.php

    /**
     * @category   Zend
     * @package    Zend_Validate
     * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
     * @license    http://framework.zend.com/license/new-bsd     New BSD License
     */
    class Zend_Validate_Alnum extends Zend_Validate_Abstract
    

    Both are separate files, but belong to the Zend_Validate package. Thus, on http://framework.zend.com/apidoc/core/ you can find them grouped in the same package.

    You can also have subpackages to group additional classes below a normal package. For instance http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Validate/Sitemap/Lastmod.php

    /**
     * Validates whether a given value is valid as a sitemap <lastmod> value
     *
     * @link       http://www.sitemaps.org/protocol.php Sitemaps XML format
     *
     * @category   Zend
     * @package    Zend_Validate
     * @subpackage Sitemap
     * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
     * @license    http://framework.zend.com/license/new-bsd     New BSD License
     */
    class Zend_Validate_Sitemap_Lastmod extends Zend_Validate_Abstract
    

    See the above linked API docs to see how it shows when generated.

    You do not document package annotations. The annotation is just used to logically group class or files that conceptuially belong to together. If you want to have a package description, write it either into the most appropriate file of the package or create a separate file and give it the same annotation as the other files/classes in that package have.

    For examples of usage to packages, you the example annotation to link files which contains examples or simply write them inline with code tags in the DocBlocks. If you are using a separate file to document your packages, you could insert them there.

    /**
     * MyLib
     *
     * Files under the MyLib package do foo and bar. They are baz.
     * 
     * Usage Examples of MyLib classes
     * <code>
     * $foo = new Foo;
     * $foo->doSomething()
     * </code>
     *
     * @package MyLib
     *
     * @example /some/path/to/an/example/file 
     */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My folder structure looks like this: /app /app/data ... /app/secondary /app/secondary/data I want to
I have got following folder structure for my domain (domain.com): /data/images (it´s subdomain name,
I am developing folder watcher application for MAC in XCode using Foundation framework and
How to make folder as image database,i am inserting a images to a folder
I have an donate application script that has all its files in one Folder
Folder with program: C:\ProgramFolder In folder there is a package with classes: com\mysite\my_program Main
What folder should I put in excel files (*.xls) to android project? I want
trying to import a folder of sprites... also using Zend Framework so my setup
I have a folder with some .h and .c files and I want to
The folder Test contains various files and folders. I want to create a jar

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.