{"id":3034,"date":"2019-03-20T12:55:07","date_gmt":"2019-03-20T10:55:07","guid":{"rendered":"https:\/\/www.robinglauser.ch\/blog\/?p=3034"},"modified":"2019-03-20T12:55:08","modified_gmt":"2019-03-20T10:55:08","slug":"creating-a-uml-to-php-generator-for-staruml","status":"publish","type":"post","link":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/","title":{"rendered":"Creating a UML to PHP Generator for StarUML"},"content":{"rendered":"\n<p>With the new version 3 of StarUML there wasn&#8217;t a UML to PHP Generator yet. I&#8217;ve decided to take the existing one for Java (<a href=\"https:\/\/github.com\/staruml\/staruml-java\">https:\/\/github.com\/staruml\/staruml-java<\/a>) and rewrote it so it would generate PHP code instead: <a href=\"https:\/\/github.com\/nahakiole\/staruml-php\">https:\/\/github.com\/nahakiole\/staruml-php<\/a><\/p>\n\n\n\n<p>I then submitted it to the StarUML extension Repository and to this date it has already been downloaded over 600 times. <\/p>\n\n\n\n<p>If you find any bugs, <a href=\"https:\/\/github.com\/nahakiole\/staruml-php\/issues\">report<\/a> them to me and I&#8217;ll fix them as soon as possible.<\/p>\n\n\n\n<p><a href=\"http:\/\/staruml.io\/extensions\">http:\/\/staruml.io\/extensions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">With the new version 3 of StarUML there wasn&#8217;t a UML to PHP Generator yet. I&#8217;ve decided to take the existing one for Java (https:\/\/github.com\/staruml\/staruml-java) and rewrote it so it would generate PHP code instead: https:\/\/github.com\/nahakiole\/staruml-php I then submitted it to the StarUML extension Repository and to this date it has already been downloaded over 600 times. If you find &#8230; <a class=\"read-more\" href=\"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":3036,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45],"tags":[336,100,338,335,56,337,99],"class_list":["post-3034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-class","tag-classdiagram","tag-coding","tag-generator","tag-php","tag-programming","tag-uml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a UML to PHP Generator for StarUML - Robin Glauser<\/title>\n<meta name=\"description\" content=\"With the new version 3 of StarUML there wasn&#039;t a UML to PHP Generator yet. I&#039;ve decided to take the existing one for Java (https:\/\/github.com\/staruml\/staruml-java) and rewrote it so it would generate PHP code instead: https:\/\/github.com\/nahakiole\/staruml-php\ufeff\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a UML to PHP Generator for StarUML - Robin Glauser\" \/>\n<meta property=\"og:description\" content=\"With the new version 3 of StarUML there wasn&#039;t a UML to PHP Generator yet. I&#039;ve decided to take the existing one for Java (https:\/\/github.com\/staruml\/staruml-java) and rewrote it so it would generate PHP code instead: https:\/\/github.com\/nahakiole\/staruml-php\ufeff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/\" \/>\n<meta property=\"og:site_name\" content=\"Robin Glauser\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-20T10:55:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-20T10:55:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2019\/03\/Bildschirmfoto-2019-03-20-um-11.51.15.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2884\" \/>\n\t<meta property=\"og:image:height\" content=\"952\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Robin Glauser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:site\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Glauser\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/\"},\"author\":{\"name\":\"Robin Glauser\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"headline\":\"Creating a UML to PHP Generator for StarUML\",\"datePublished\":\"2019-03-20T10:55:07+00:00\",\"dateModified\":\"2019-03-20T10:55:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/\"},\"wordCount\":95,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Bildschirmfoto-2019-03-20-um-11.51.15.png\",\"keywords\":[\"class\",\"classdiagram\",\"coding\",\"generator\",\"php\",\"programming\",\"uml\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/\",\"name\":\"Creating a UML to PHP Generator for StarUML - Robin Glauser\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Bildschirmfoto-2019-03-20-um-11.51.15.png\",\"datePublished\":\"2019-03-20T10:55:07+00:00\",\"dateModified\":\"2019-03-20T10:55:08+00:00\",\"description\":\"With the new version 3 of StarUML there wasn't a UML to PHP Generator yet. I've decided to take the existing one for Java (https:\\\/\\\/github.com\\\/staruml\\\/staruml-java) and rewrote it so it would generate PHP code instead: https:\\\/\\\/github.com\\\/nahakiole\\\/staruml-php\ufeff\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Bildschirmfoto-2019-03-20-um-11.51.15.png\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Bildschirmfoto-2019-03-20-um-11.51.15.png\",\"width\":2884,\"height\":952},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2019\\\/03\\\/20\\\/creating-a-uml-to-php-generator-for-staruml\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a UML to PHP Generator for StarUML\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\",\"name\":\"Robin Glauser\",\"description\":\"My Blog about Development, Design and my random thoughts.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\",\"name\":\"Robin Glauser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"width\":800,\"height\":530,\"caption\":\"Robin Glauser\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\"},\"description\":\"I'm a web developer.\",\"sameAs\":[\"https:\\\/\\\/www.robinglauser.ch\",\"https:\\\/\\\/www.instagram.com\\\/robinglauser\\\/\",\"https:\\\/\\\/x.com\\\/robinglauser\"],\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/author\\\/robin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a UML to PHP Generator for StarUML - Robin Glauser","description":"With the new version 3 of StarUML there wasn't a UML to PHP Generator yet. I've decided to take the existing one for Java (https:\/\/github.com\/staruml\/staruml-java) and rewrote it so it would generate PHP code instead: https:\/\/github.com\/nahakiole\/staruml-php\ufeff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/","og_locale":"en_US","og_type":"article","og_title":"Creating a UML to PHP Generator for StarUML - Robin Glauser","og_description":"With the new version 3 of StarUML there wasn't a UML to PHP Generator yet. I've decided to take the existing one for Java (https:\/\/github.com\/staruml\/staruml-java) and rewrote it so it would generate PHP code instead: https:\/\/github.com\/nahakiole\/staruml-php\ufeff","og_url":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/","og_site_name":"Robin Glauser","article_published_time":"2019-03-20T10:55:07+00:00","article_modified_time":"2019-03-20T10:55:08+00:00","og_image":[{"width":2884,"height":952,"url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2019\/03\/Bildschirmfoto-2019-03-20-um-11.51.15.png","type":"image\/png"}],"author":"Robin Glauser","twitter_card":"summary_large_image","twitter_creator":"@robinglauser","twitter_site":"@robinglauser","twitter_misc":{"Written by":"Robin Glauser"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#article","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/"},"author":{"name":"Robin Glauser","@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"headline":"Creating a UML to PHP Generator for StarUML","datePublished":"2019-03-20T10:55:07+00:00","dateModified":"2019-03-20T10:55:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/"},"wordCount":95,"commentCount":0,"publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2019\/03\/Bildschirmfoto-2019-03-20-um-11.51.15.png","keywords":["class","classdiagram","coding","generator","php","programming","uml"],"articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/","url":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/","name":"Creating a UML to PHP Generator for StarUML - Robin Glauser","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#primaryimage"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2019\/03\/Bildschirmfoto-2019-03-20-um-11.51.15.png","datePublished":"2019-03-20T10:55:07+00:00","dateModified":"2019-03-20T10:55:08+00:00","description":"With the new version 3 of StarUML there wasn't a UML to PHP Generator yet. I've decided to take the existing one for Java (https:\/\/github.com\/staruml\/staruml-java) and rewrote it so it would generate PHP code instead: https:\/\/github.com\/nahakiole\/staruml-php\ufeff","breadcrumb":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#primaryimage","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2019\/03\/Bildschirmfoto-2019-03-20-um-11.51.15.png","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2019\/03\/Bildschirmfoto-2019-03-20-um-11.51.15.png","width":2884,"height":952},{"@type":"BreadcrumbList","@id":"https:\/\/www.robinglauser.ch\/blog\/2019\/03\/20\/creating-a-uml-to-php-generator-for-staruml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robinglauser.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating a UML to PHP Generator for StarUML"}]},{"@type":"WebSite","@id":"https:\/\/www.robinglauser.ch\/blog\/#website","url":"https:\/\/www.robinglauser.ch\/blog\/","name":"Robin Glauser","description":"My Blog about Development, Design and my random thoughts.","publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19","name":"Robin Glauser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","width":800,"height":530,"caption":"Robin Glauser"},"logo":{"@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg"},"description":"I'm a web developer.","sameAs":["https:\/\/www.robinglauser.ch","https:\/\/www.instagram.com\/robinglauser\/","https:\/\/x.com\/robinglauser"],"url":"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/comments?post=3034"}],"version-history":[{"count":2,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3034\/revisions"}],"predecessor-version":[{"id":3037,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3034\/revisions\/3037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media\/3036"}],"wp:attachment":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media?parent=3034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/categories?post=3034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/tags?post=3034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}