Download the PHP package 8fold/laravel-documenter without Composer

On this page you can find all versions of the php package 8fold/laravel-documenter. 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 laravel-documenter

Documenter for Laravel 5.4+ by 8fold

Documenter for Laravel is an extension and wrapper for Documenter for PHP to dynamically generate documentation sites using Laravel 5.4+. It is possible to use Documenter for Laravel as just a means to read project PHP files; however, if this is your goal, Documenter for PHP or phpDocumentor might be more in keeping with what you are looking for.

Acquire (Composer)

Or add the following to your composer.json under required:

And add the following to your PSR-4 section of your composer.json (note: the first bit, I believe can be of your choosing):

Recommend running composer update, even if you did $ composer require.

Also recommend explicitly running NPM:

Then publish vendor assets:

Now you're ready to set everything up.

Getting up and running

When it comes to setup, Documenter leans more toward convention over configuration. So, putting files into folders, over having to manipulate the configuration file a lot.

Register the service provider in your /config/app.php file under providers:

Note: The vendor and package name is set within your composer.json.

Routes: Documenter does not attempt to be the main purpose for your Laravel project. Therefore, the default routes used, incorporate a subdomain named developer. However, you should be able to override this by copying the routes within the group and still use the default ProjectsController.php.

Documenter main: Create a folder somewhere within your project where you will put the files you want to generate APIs for. The default is /base-laravel-app/app_docs. You can change this in the /config/documenter-laravel.php.

Project folder: Create a folder for each project you want Documenter to process under the previous directory. This folder will hold all the versions. The name of the folder should be in slug form. ex. documenter-laravel.

Version folder: Create a folder within the project folder that represents a version. The version name should be in slug form. ex. v1-0-0. The is the folder level in which you will place the code you want to process. By default, Documenter limits its processing to a directory called src at this level.

Sass: If you are using the default look and feel and related templates, @import the related Sass file:

At this point, you should be almost good to go. If this seems incomplete (may be missing JavaScript), please correct or submit an issue. Thank you!

Configuration

documenter_domain: The domain name to use. Recommend making this a variable in .env. DOCUMENTER_DOMAIN is the default variable name being used.

projects_root: Default is app_docs at the base of your Laravel project. This puts that folder directly under you main app directory in Laravel.

projects: This is the big one, but hopefully it is simple. Documenter will limit itself to only projects listed here. The dictionary key should match the slug for the project you chose in setting things up. The value is a dictionary with "title" and "category" keys, where the value of "title" is the human-friendly string of the project and "category" is the human-friendly string to categorize the projects. The "category" key is optional (I think). So, an example, let's use Documenter for Laravel 5.4+.

This would mean Documenter expects the following (using the default setup):

Views

If you have done the previous steps, at this point, you should be able to generate a site. However, it may not match the look and feel you would prefer. Documenter tries to make it easy (or at least easier). You use all the Laravel things you are accustomed to; not a lot of new things to learn here.

Again, we try to use convention over configuration.

When you run $ php artisan vendor:publish, a "documenter" folder is generated in the main /resources/views. Initially it is an empty directory and you can (should be able to) put files and folders into this directory to tell Documenter what views to use and when. Let's start with the most customized view.

This setup allows you to create a layout specific to a project version. It is also possible to create a generic set of templates for all projects regardless of version.

Now, any project being considered by Documenter will use these templates. The assumed purpose of each does not change. Note: This is the out of the box setup for Documenter.

If you do not use a projectOverview template, Documenter will attempt to redirect users to the home page of the highest version of the project (by default, Documenter does not include a projectOverview template).

To recap, Documenter will first look for a template file under the project and version. If it does not find one, it will look for a template within your /resources/views/documenter and /resources/views/documenter/version directories. If it does not find one, it will use its own templates.

If this seems incomplete or not what you experience, please correct or submit an issue. Thank you!


All versions of laravel-documenter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
league/html-to-markdown Version 4.4.*
phpdocumentor/reflection Version 3.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 8fold/laravel-documenter contains the following files

Loading the files please wait ....