Download the PHP package zobaken/apd without Composer

On this page you can find all versions of the php package zobaken/apd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apd

Simple PHP API documentation generator

What is this?

This is a simple library that helps to create api documentation directly in PHP code comment blocks.

Installation

You are required to use composer:

composer require zobaken/apd ~0.3

Usage

To get parsed structure:

use Apd\Parser;
...
$parser = new Parser();
$parser->path('path to your php files');
$endpoints = $parser->parse();

In result $endpoints will contain an array of \Apd\Structure\Endpoint.

Command line

This parser can be used generate simple Markdown or HTML output:

php vendor/bin/apd-markdown.php path-to-files > output.md
php vendor/bin/apd-html.php path-to-files > output.html

Syntax

Optional description can be placed after any tag.

Project

@project <shortname> <version> <Title> 

Section

@section <Section-name> <Section title> 

Call entry

@call <Method> <Path> <Title> 

Request parameter

@request <Type> <Name> <Title> 

If parameter is optional then append |null to its type, like string|null.

If type is object then a list of nested fields can be included:

@request object data Request object
int id User id
string email User email

Response field

@response <Type> <Name> <Title> 

Register object

You can define an object and use it later then. See example below.

Example

This is a simple example.

/**
 * @project test 1.0 Test project
 *
 * Project description.
 *
 * @section profile Register and login section
 *
 * Section description.
 *
 * @register Profile User profile object
 * int id User id
 * string email User email
 * string|null about About user
 * string|null profile_image Profile image
 * object|null address { User address
 *   string city City
 *   string street Street
 *   string number House number
 * }
 *
 * Registered class description.
 *
 */

/**
 * @call PUT /profile/register Register a new user
 *
 * Call entry description
 *
 * @request string token Security token
 * @request object profile Profile fields
 * string email User email
 * string password User password
 * string about="To be filled" About user
 * string profile_image=http://someserver/default.png About user

 * @response Profile data User profile
 */

All versions of apd with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
cebe/markdown Version ~1.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zobaken/apd contains the following files

Loading the files please wait ....