Download the PHP package amsify42/php-swagger-postman without Composer

On this page you can find all versions of the php package amsify42/php-swagger-postman. 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 php-swagger-postman

PHP Swagger Postman

For generating enpoint specific Attribute, you can call this method

You can also pass parameter rules and route params also with key value pair to get it added to the attribute

For generating response data in attibute

You can also pass callback for checking rules and decide the param needs to have TinyInt or Enum Values or Custom Property Attribute

By default NULL needs to be return if array of tinyint/enum/property is not return and if you want to generate property for a param which might be having simple or nested array

For adding security

Example security attribute already added

For adding header with static value

For adding response which already defined

Example Validation already defined

For generating Annotation instead of Attribute

Notes:

  1. You can use all the method with Annotation which is mentioned above for Attribute but Attribute requires minimum php 8.2 version.
  2. For using Annotation with latest swagger-php installed, you may have to separately install doctrine/annotations

Refer to this link for more details https://github.com/zircote/swagger-php/blob/master/docs/guide/migrating-to-v4.md

Scanning the directory and generating swagger json for API documentation and postman collection and postman environment json.

Notes:

  1. Make sure to have OA/Info and at least one API endpoint already added before running $swagger->getGeneratedJson() method.
  2. For detecting source classes properly while scanning the directory, Either set autoload in composer.json or use spl_autoload_register() method for customize autoloading of the classes.

Annotation Example

If you want postman environment to have baseURL variable value, you can either set like this

or define at least one server in Attribute

or in Annotation

for adding environment suffix in postman environment file name, you can pass it in second parameter of Swagger Constructor


All versions of php-swagger-postman with dependencies

PHP Build Version
Package Version
Requires zircote/swagger-php Version 4.*
php Version >=7.4
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 amsify42/php-swagger-postman contains the following files

Loading the files please wait ....