Download the PHP package futurfuturfuturfutur/duckduckduck without Composer

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

🦆 DuckDuckDuck

[Travis]() Total Downloads

Laravel package able to auto generate API documentation through tests, without garbage comments inside the code base.

Support of documentations

  1. OpenAPI 3.0.0

How it works

If your project has excellent feature testing coverage, it means you already has documentation for this project. You've already described available paths, requests body, parameters, content types, response payloads and http codes. You shouldn't describe it again by your own just in format of the api documentation you use.The package principle is super simple: when you run tests, package middleware just grab response and request of the test case and saves it as an api documentation config file, which you can use to render.

Install

  1. Install package with composer require --dev futurfuturfuturfutur/duckduckduck
  2. Publish and setup package with php artisan duckduckduck:init. This command will publish duckduckduck.php configuration file inside the folder of Laravel with base configuration of your API documentation and create
    package dir inside the root of the app to contain all documentation configs of your project generated by package.
  3. Add TestCase trait inside the phpunit TestCase

Usage

Setup

The package will handle most of the things, but some of them you need to define by yourself:

  1. Define base info of the API documentation (name, description, type of documentation, version) inside the config/duckduckduck.php
  2. Route description and group should be defined as PHPDoc comment of the class of the test (All of them are optional):

  3. A test case description should be defined as PHPDoc comment of the case method:

Run build

Run your tests in API documentation generation mode with php artisan duckduckduck:generate. The package will run feature tests pf your app and generate documentation file inside the package dir inside the root of the app.

Run documentation render with Docker

The easiest and prettiest way to run your documentation render server to just up the docker container with
package directory passed inside.

Swagger

Remember that mounting duckduckduck folder should be defined as absolute path

API documentation

Contributing

Please see Contribution for details.

License

The MIT License (MIT). Please see License File for more information.


All versions of duckduckduck with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^7.0|^8.0
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 futurfuturfuturfutur/duckduckduck contains the following files

Loading the files please wait ....