UML Stereotypes for PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jakub Moskal

    UML Stereotypes for PHP

    Has anyone of you tried to model PHP with UML? I am looking for design
    stereotypes that would express everything that can be coded in PHP. If
    anyone of you had a chance to read a book by Jim Conallen "Building Web
    Applications with UML Second Edition" - there is an example of
    stereotypes suggested for JSP. I am looking for similar set of
    stereotypes but for PHP.

    Thanks in advance,
    Jakub Moskal.

  • bhawin13@indiatimes.com

    #2
    Re: UML Stereotypes for PHP

    Visit


    I hope this will end your search.

    bhawin13

    Comment

    • Berislav Lopac

      #3
      Re: UML Stereotypes for PHP

      Jakub Moskal wrote:[color=blue]
      > Has anyone of you tried to model PHP with UML? I am looking for design
      > stereotypes that would express everything that can be coded in PHP. If
      > anyone of you had a chance to read a book by Jim Conallen "Building
      > Web Applications with UML Second Edition" - there is an example of
      > stereotypes suggested for JSP. I am looking for similar set of
      > stereotypes but for PHP.[/color]

      It is very different to write OO for PHP4 or for PHP5.

      AFAIK there is no specific stereotypes for PHP in UML, but those for Java
      shouldn't be too far off.

      Berislav


      Comment

      • Jakub Moskal

        #4
        Re: UML Stereotypes for PHP

        That is true, there are no specific stereotypes for PHP, that is my
        task. JSP works a little bit differently and it's not easy to map it
        directly to PHP. I am wondering how to model superglobals, global
        functions or instructions such as icnlude and require in PHP.
        phppatterns is a dead website, the last post is dated on july 2004 or
        so. They didn't suggest any new stereotypes apart from the ones that
        Conallen already has. Anyway, thank you fro your help.

        Jakub Moskal

        Comment

        • Berislav Lopac

          #5
          Re: UML Stereotypes for PHP

          Jakub Moskal wrote:[color=blue]
          > That is true, there are no specific stereotypes for PHP, that is my
          > task. JSP works a little bit differently and it's not easy to map it
          > directly to PHP. I am wondering how to model superglobals, global
          > functions or instructions such as icnlude and require in PHP.
          > phppatterns is a dead website, the last post is dated on july 2004 or
          > so. They didn't suggest any new stereotypes apart from the ones that
          > Conallen already has. Anyway, thank you fro your help.[/color]

          Try to combine various other languages' stereotypes. Global scope exists in
          C++, but I must say that I don't know of any language besides PHP that has
          the globals/superglobals distinction.

          Berislav


          Comment

          • Jakub Moskal

            #6
            Re: UML Stereotypes for PHP

            Thank you for help, that might be a good point to start working on it.
            I appreciate your opinions,

            Jakub

            Comment

            • zimba

              #7
              Re: UML Stereotypes for PHP

              Hi,

              I don't know what are stereotypes, but what I know is that ArgoUML is
              capable of designing UML and generate PHP5 code.

              Maybe you'll find it interesting : http://argouml.tigris.org

              Cheers,
              .... zimba

              Comment

              • Jakub Moskal

                #8
                Re: UML Stereotypes for PHP

                Thank you for reply, however I already looked at ArgoUML. I am trying
                to come up with my own UML extension (a part of which are stereotypes)
                to maybe in the end generate code from it. There are quite a few
                programms that can already spit PHP based on UML, but they don't define
                any PHP-specific stereotypes, therefore their possibilities are
                constrained.

                Anyway, thanks again for your reply, I appreciate it.
                Jakub

                Comment

                Working...