Download the PHP package awema-pl/module-docs without Composer
On this page you can find all versions of the php package awema-pl/module-docs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awema-pl/module-docs
More information about awema-pl/module-docs
Files in awema-pl/module-docs
Package module-docs
Short Description Package for wiki output
License MIT
Homepage https://awema.pl
Informations about the package module-docs
Docs
Awema packages documentation reader
Installation
Via Composer
The package will automatically register itself.
You can publish the views with:
You can publish the config file with:
Adding docs routes
Add to routes\web.php
Examples of use
Methods
all()
Docs::all($withDocs = true);
Output:
Input param $withDocs
is bollean, optional and is true by default.
if $withDocs == false
file content will be null
get()
Docs::get(['package1' => ['1.0', '2.6'], 'package2' => '1.3', 'package3'], 'package4', $withDocs = true);
Last bool param $withDocs
is optional and is true by default
Method output is the same as for all(), but will contain only specified in args packages and versions.
If packages are not listed result will contain all packages.
If versions for specified package is not listed result will contain all versions for that package
package()
Docs::package('package1', $withDocs = true);
Output:
If package is not in the docs, result will be null
.
Last bool param $withDocs
is optional and is true by default.
If $withDocs == false
file content
will be null.
versions()
Docs::versions('package1', $withDocs = true);
Output:
If package is not in the docs, result will be null
.
Last bool param $withDocs
is optional and is true by default.
If $withDocs == false
file content
will be null.
version()
Docs::version('package1', '1.0', $withDocs = true);
Output:
If package or version is not in the docs, result will be null
.
Last bool param $withDocs
is optional and is true by default.
If $withDocs == false
file content
will be null.
files()
Docs::files('package1', '1.0', $withDocs = true);
Output:
If package or version is not in the docs, result will be null
.
Last bool param $withDocs
is optional and is true by default.
If $withDocs == false
file content
will be null.
file()
Docs::file('package1', '1.0', 'file.md');
Output:
If package or version or file is not in the docs, result will be null
.
fileContent()
Docs::fileContent('package1', '1.0', 'file.md');
Result is file content string or null
if file does not exists
list()
Docs::list();
Output is array of packages names
Docs::list('package1');
Output is array of package versions names
If package is not in the docs, result will be null
.
Docs::list('package1', '1.0');
Output is array of package version files names
If package or version is not in the docs, result will be null
.
Docs::list('package1', '1.0', 'file.md');
Result is file content string or null
if file does not exists
Testing
You can run the tests with:
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.
All versions of module-docs with dependencies
league/commonmark Version ^1.5.4
illuminate/support Version ~5|~6|~7|~8|~9