Skip to content

Instantly share code, notes, and snippets.

@realFranco
Created October 16, 2023 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realFranco/8478acec02d2b3ba908ab83866885aeb to your computer and use it in GitHub Desktop.
Save realFranco/8478acec02d2b3ba908ab83866885aeb to your computer and use it in GitHub Desktop.
PHP tools that I have been using #php #composer #packgist #3v4l #phUML #uml #docker

PHP Tools

This file will contain information about some PHP based tools that I have to use in order to write software products through PHP frameworks.

# composer.yaml
services:
    # The service "phUML" was introduced in this manner due outdated dependencies already solved on `my-nubity`.
    # See: https://github.com/MontealegreLuis/phuml/blob/master/composer.json.
    uml:
        image: montealegreluis/phuml:latest
        volumes:
            - ./../:/code
            - ./../src/Resources/doc/modules:/uml

# Compose example:
docker compose -f .docker/compose.yaml build

docker compose -f .docker/compose.yaml run --rm uml \
  phuml:diagram -r -a -i -o -p dot \
  src/WorkedGlassHour \
  uml/WorkedGlassHour/product-ticket-glass-hour-uml-diagram-class.png

docker compose -f .docker/compose.yaml run --rm uml \
  phuml:diagram -r -a -p dot \
  src/WorkedGlassHour \
  src/Resources/doc/modules/WorkeGlassdHour/product-ticket-glass-hour-uml-diagram-class.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment