{"id":24393506,"url":"https://github.com/nahakiole/staruml-php","last_synced_at":"2025-10-28T10:37:33.439Z","repository":{"id":53877468,"uuid":"172932732","full_name":"nahakiole/staruml-php","owner":"nahakiole","description":"PHP extension for StarUML","archived":false,"fork":false,"pushed_at":"2020-09-22T08:49:50.000Z","size":567,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T08:51:21.807Z","etag":null,"topics":["code-generator","extension","php","staruml","uml","uml-diagram"],"latest_commit_sha":null,"homepage":"https://staruml.io/extensions","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nahakiole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-27T14:42:16.000Z","updated_at":"2024-06-09T16:27:00.000Z","dependencies_parsed_at":"2022-08-29T22:20:51.312Z","dependency_job_id":null,"html_url":"https://github.com/nahakiole/staruml-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fstaruml-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fstaruml-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fstaruml-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fstaruml-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nahakiole","download_url":"https://codeload.github.com/nahakiole/staruml-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248402369,"owners_count":21097328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generator","extension","php","staruml","uml","uml-diagram"],"created_at":"2025-01-19T18:25:26.098Z","updated_at":"2025-10-28T10:37:33.375Z","avatar_url":"https://github.com/nahakiole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Extension for StarUML\n==========================\n\nThis extension for StarUML(http://staruml.io) support to generate PHP code from UML model. Install this extension from Extension Manager of StarUML.\n\nBased on https://github.com/staruml/staruml-java\n\nPHP Code Generation\n--------------------\n\n1. Click the menu (`Tools \u003e PHP \u003e Generate Code...`)\n2. Select a base model (or package) that will be generated to PHP.\n3. Select a folder where generated PHP source files will be placed.\n\nBelows are the rules to convert from UML model elements to PHP source codes.\n\n### UMLPackage\n\n* converted to _PHP Namespace_ (as a folder).\n\n### UMLClass\n\n* converted to _PHP Class_. (as a separate `.php` file)\n* `visibility` to one of modifiers `public`, `protected`, `private` and none.\n* `isAbstract` property to `abstract` modifier.\n* Default constructor is generated.\n* All contained types (_UMLClass_, _UMLInterface_, _UMLEnumeration_) are generated as inner type definition.\n* Documentation property to PHPDoc comment.\n\n### UMLAttribute\n\n* converted to _PHP Field_.\n* `visibility` property to one of modifiers `public`, `protected`, `private` and none.\n* `name` property to field identifier.\n* `multiplicity` property to array type.\n* `isStatic` property to `static` modifier.\n* `defaultValue` property to initial value.\n* Documentation property to PHPDoc comment.\n\n### UMLOperation\n\n* converted to _PHP Methods_.\n* `visibility` property to one of modifiers `public`, `protected`, `private` and none.\n* `name` property to method identifier.\n* `isAbstract` property to `abstract` modifier.\n* `isStatic` property to `static` modifier.\n* _UMLParameter_ to _PHP Method Parameters_.\n* _UMLParameter_'s name property to parameter identifier.\n* Documentation property to PHPDoc comment.\n\n### UMLInterface\n\n* converted to _PHP Interface_.  (as a separate `.php` file)\n* `visibility` property to one of modifiers `public`, `protected`, `private` and none.\n* Documentation property to PHPDoc comment.\n\n### UMLEnumeration\n\n* converted to _PHP Class_.  (as a separate `.php` file)\n* `visibility` property to one of modifiers `public`, `protected`, `private` and none.\n* _UMLEnumerationLiteral_ to literals of enum.\n\n### UMLAssociationEnd\n\n* converted to _PHP Field_.\n* `visibility` property to one of modifiers `public`, `protected`, `private` and none.\n* `name` property to field identifier.\n* `defaultValue` property to initial value.\n* Documentation property to PHPDoc comment.\n\n### UMLGeneralization\n\n* converted to _PHP Extends_ (`extends`).\n* Allowed only for _UMLClass_ to _UMLClass_, and _UMLInterface_ to _UMLInterface_.\n\n### UMLInterfaceRealization\n\n* converted to _PHP Implements_ (`implements`).\n* Allowed only for _UMLClass_ to _UMLInterface_.\n\n---\n\nLicensed under the MIT license (see LICENSE file).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnahakiole%2Fstaruml-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnahakiole%2Fstaruml-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnahakiole%2Fstaruml-php/lists"}