Download the PHP package wongdoody/php-uml-crafter without Composer

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

Php Uml Crafter

This package generates uml from php code. PlantUML is required to see the diagram, you can either install the plugin in your code editor or use a online tool visualize it.

Installation

You can install the package via composer:

Usage in Laravel projects

You can publish the config file with:

This is the content of the published config file for Laravel projects:

Scan classes command

Generate a PlantUML file command

It is also possible to pass the following options in the command:

--project-path: Path to the root directory of your PHP framework project as string.

--exclude-directories: Directories to exclude from the scanning process, if any in comma separated list.

--exclude-files: Files to exclude from the scanning process, if any comma separated list.

--save-path: Path to save the generated UML diagrams as string.

--include-traits: --include-traits=true scan traits and interfaces

Usage in other PHP Frameworks

For other PHP frameworks, you can still utilize the UML Crafter package to scan classes and generate UML diagrams. Below is a generic command that can be adjusted to fit the structure and requirements of different frameworks:

Scan classes

Replace the placeholders (your_project_directory, directory_to_exclude, file_to_exclude, path_to_save_diagrams) with appropriate values according to your PHP framework's directory structure and preferences.

--project-path: Path to the root directory of your PHP framework project as string.

--exclude-directories: Directories to exclude from the scanning process, if any comma separated list.

--exclude-files: Files to exclude from the scanning process, if any comma separated list.

--save-path: Path to save the generated UML diagrams as string.

Make sure to adjust the command parameters to match your specific PHP framework's structure and requirements.

Styling

For the uml-crafter:generate command there is also an option to change style to light mode (as default is dark mode set). Add flag below to the command:

--light-mode: Change style to light mode

Example: php artisan uml-crafter:generate --light-mode=true

Credits

License

GNU GENERAL PUBLIC LICENSE (GPL-3).


All versions of php-uml-crafter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.14.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 wongdoody/php-uml-crafter contains the following files

Loading the files please wait ....