<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: David Maye</title>
    <description>The latest articles on DEV Community by David Maye (@seigidev).</description>
    <link>https://dev.to/seigidev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4108207%2F9d489fb4-d29d-4414-b1b4-cb00f735703a.png</url>
      <title>DEV Community: David Maye</title>
      <link>https://dev.to/seigidev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seigidev"/>
    <language>en</language>
    <item>
      <title>Creating a High Performing PHP alternative backend on GraalVM. Part 1 : Introduction</title>
      <dc:creator>David Maye</dc:creator>
      <pubDate>Mon, 16 Nov 2026 15:38:09 +0000</pubDate>
      <link>https://dev.to/seigidev/creating-a-high-performing-php-alternative-backend-on-graalvm-part-1-introduction-2ae2</link>
      <guid>https://dev.to/seigidev/creating-a-high-performing-php-alternative-backend-on-graalvm-part-1-introduction-2ae2</guid>
      <description>&lt;p&gt;The idea is mentioned in the title: create a new backed for the PHP language. The name of the backend? HPP (&lt;strong&gt;H&lt;/strong&gt;igh-&lt;strong&gt;P&lt;/strong&gt;erforming &lt;strong&gt;P&lt;/strong&gt;HP) running on the GraalVM. The project is available in a &lt;a href="https://gitlab.com/grupodmk/hpp" rel="noopener noreferrer"&gt;public Gitlab repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There is previous work done on this matter by &lt;a href="https://github.com/abertschi/graalphp" rel="noopener noreferrer"&gt;Andrin Bertschi&lt;/a&gt; that seems to show that PHP on GraalVM could improve it's performance to up to 859%. Even though I start from "scratch" using the &lt;a href="https://github.com/graalvm/simplelanguage" rel="noopener noreferrer"&gt;Simple Language&lt;/a&gt; example from Oracle, I will still be heavily inspired by Adrin project. The objective is to have a stable alternative that can be switched simply on user decision. &lt;/p&gt;

&lt;p&gt;It's going to be somehow hard to do because GraalVM allows you to create a programming language using the Java Language and the Truffle Framework, and I know neither of those, nor on Programming Language Design and it's components (Parser, Lexer, memory management, etc.) The only average proefficiency I have is in PHP and some quick intense experience with other programming language (C, D, JS) aquired either on curiousity or due to my main activity (Web Dev).&lt;/p&gt;

&lt;p&gt;So this series is more of resume on lessons learned during my 1 hour coding session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work done today
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Renaming SL to HPP
&lt;/h3&gt;

&lt;p&gt;The only thing I did today was rename every namespaces and class, method and properties names. This also included a big directory renaming. I couldn't do it all due to time constraint (1 hour coding session) so maybe I will keep working tomorrow. Althout it was very fun to work on Java. I remember that Java was one of the programming language I always wanted to program on, so I'm delighted to work on it as a tool for my main Programminga Language of interest: PHP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concepts learned today
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The pom.xml file
&lt;/h3&gt;

&lt;p&gt;This project uses maven (a.k.a mvn). It is project manager/project builder for the Java language owned by apache. And every pom.xml file is a description of the work to be done by the project: it contains about the name of the project, group name (author group name), the artefact ID and the modules.&lt;/p&gt;

&lt;p&gt;In the project, there are 4 directories: language, launcher, standalone, tck. Each of the directories are referenced in the pom.xml file as a module of the project. And inside each modules leaves another pom.xml file that describes the module.&lt;/p&gt;

&lt;p&gt;It's similar to a &lt;code&gt;composer.json&lt;/code&gt; project: contains info on the project, and each packages/bundles of the project contains it's own &lt;code&gt;composer.json&lt;/code&gt; file. In this case I have to work on 4 modules in a single project, which is a very interesting approach I'm not used to.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bytecode is generated under target directory of each module
&lt;/h3&gt;

&lt;p&gt;While renaming folders, I observed that there was some target directory in each modules that mimicked the src directory and contained some bytecodes. That was due to the fact that a previously compiled the project using &lt;code&gt;mvn package&lt;/code&gt; command. I read about bytecode languages (compiled and then interpreted), but I never seen one in action. That's was cool&lt;/p&gt;

&lt;h3&gt;
  
  
  Namespace seems tied to the project directory structure
&lt;/h3&gt;

&lt;p&gt;It is interesting that namespace naming must match the directory. In the case of PHP the namespace is conditioned by the composer file. I can have a directory in &lt;code&gt;src/Project&lt;/code&gt; and define the project as available under &lt;code&gt;Seigisoft\SeigiCms\FrameworkBundle&lt;/code&gt;. An example is available here: &lt;a href="https://gitlab.com/seigisoft/seigicms/seigicms-framework-bundle" rel="noopener noreferrer"&gt;https://gitlab.com/seigisoft/seigicms/seigicms-framework-bundle&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  module-info.java as a Dependency class
&lt;/h3&gt;

&lt;p&gt;So that's interesteing. There is a class that acts as a dependency manager called module-info.java. Seems like while pom.xml is more focused on project building aspect, this file declares the dependencies that will be used by the classes under that directory. I have to admit that I start to like Java: this move seems overkill and weird, but at the same time it doesn't bother me too much.&lt;br&gt;
It seems like it is responsible of the classes that will be injected (using the &lt;code&gt;require &amp;lt;package&amp;gt;&lt;/code&gt; statement), the classes that will be publicly exported for other modules to use (using the &lt;code&gt;export &amp;lt;package&amp;gt;&lt;/code&gt; statement) and the interfacing aspect of the language (using &lt;code&gt;provides &amp;lt;provider&amp;gt; with&lt;/code&gt;`). Very interesting.&lt;/p&gt;

</description>
      <category>backend</category>
      <category>opensource</category>
      <category>performance</category>
      <category>php</category>
    </item>
    <item>
      <title>Developing a secure, High quality and modern website builder: a resume on my journey</title>
      <dc:creator>David Maye</dc:creator>
      <pubDate>Thu, 03 Sep 2026 15:24:46 +0000</pubDate>
      <link>https://dev.to/seigidev/developing-a-secure-high-quality-and-modern-website-builder-a-resume-on-my-journey-4p07</link>
      <guid>https://dev.to/seigidev/developing-a-secure-high-quality-and-modern-website-builder-a-resume-on-my-journey-4p07</guid>
      <description>&lt;p&gt;OK so . . . The story is very long, I will start with the beginning:&lt;/p&gt;

&lt;h2&gt;
  
  
  How It all began
&lt;/h2&gt;

&lt;p&gt;I was working as a WordPress Website Creator/Web Developer, when I heard that Matt Mullenweg, the creator of WordPress, and the WP Engine company had a lawsuit. It freaked me out, as I didn't know if this would affect me in the future.&lt;/p&gt;

&lt;p&gt;Out of freak and curiosity, I decided to start learning Symfony Web Development.&lt;/p&gt;

&lt;p&gt;At first, it was just a website in html/twig +  an admin dashboard for customers to manage some data. At that time I was working with a team that didn't have the same thirst to tweak in code and learn on the go. To which extent, I became the only maintainer of the codebase for a long time. To which, I had to add some features, correct some bugs and add some web pages.&lt;/p&gt;

&lt;p&gt;But I was frustrated that my colleague, a great Designer, couldn't work on the website. So I had 2 choices: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep on solo, with the opportunity to grow (recreating the app in Scala, because of fun).&lt;/li&gt;
&lt;li&gt;Or integrate my colleague as much as I could, so that we could work together.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At first, I wanted very hard to try Scala, but then I decided it would be better the second option&lt;/p&gt;

&lt;p&gt;So, I don't have an enormous knowledge of JavaScript to create complex interfaces without use of libraries and framework such as React, Vue, Angular, and others related. In the search of a quick to integrate alternative, I found out about the open source version of Grapes js.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/GrapesJS" rel="noopener noreferrer"&gt;
        GrapesJS
      &lt;/a&gt; / &lt;a href="https://github.com/GrapesJS/grapesjs" rel="noopener noreferrer"&gt;
        grapesjs
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Free and Open source Web Builder Framework. Next generation tool for building templates without coding
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;&lt;a href="http://grapesjs.com" rel="nofollow noopener noreferrer"&gt;GrapesJS&lt;/a&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/GrapesJS/grapesjs/actions" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/GrapesJS/grapesjs/actions/workflows/quality.yml/badge.svg" alt="Build Status"&gt;&lt;/a&gt;
&lt;a href="https://discord.gg/QAbgGXq" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/6d343f31c6b449d3eb9f46628ced897cdc63828f6bb065691b5d5dc429347fa5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636861742d646973636f72642d3732383964612e737667" alt="Chat"&gt;&lt;/a&gt;
&lt;a href="https://cdnjs.com/libraries/grapesjs" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/4039f6edacb24f172e51b496cdae0d9709160a866916329390a2acb7e4354482/68747470733a2f2f696d672e736869656c64732e696f2f63646e6a732f762f6772617065736a732e737667" alt="CDNJS"&gt;&lt;/a&gt;
&lt;a href="https://www.npmjs.com/package/grapesjs" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/7dfcfbd2f1257f67ff11c96f710579d6a9cb0c13a93fb6d846b4e9fdd9f2da98/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6772617065736a732e737667" alt="npm"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If you looking to embed the &lt;a href="https://app.grapesjs.com/studio" rel="nofollow noopener noreferrer"&gt;Studio&lt;/a&gt; editor in your application, we now offer the &lt;a href="https://app.grapesjs.com/dashboard/sdk/licenses?ref=repo-readme" rel="nofollow noopener noreferrer"&gt;Studio SDK&lt;/a&gt;, a ready-to-use visual builder that's easy to embed in external applications, with GrapesJS team support included.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/427fc64754fc30909393679df4d6c41ebf3a4b61ff84cccf2d6a095a652ff9b6/687474703a2f2f6772617065736a732e636f6d2f6173736574732f696d616765732f6772617065736a732d66726f6e742d706167652d6d2e6a7067"&gt;&lt;img src="https://camo.githubusercontent.com/427fc64754fc30909393679df4d6c41ebf3a4b61ff84cccf2d6a095a652ff9b6/687474703a2f2f6772617065736a732e636f6d2f6173736574732f696d616765732f6772617065736a732d66726f6e742d706167652d6d2e6a7067" alt="GrapesJS" width="500"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;GrapesJS is a free and open source Web Builder Framework which helps building HTML templates, faster and easily, to be delivered in sites, newsletters or mobile apps. Mainly, GrapesJS was designed to be used inside a &lt;a href="https://en.wikipedia.org/wiki/Content_management_system" rel="nofollow noopener noreferrer"&gt;CMS&lt;/a&gt; to speed up the creation of dynamic templates. To better understand this concept check the image below&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/832b89f1a1f52cb3cd661c4e1bdba52a00424a92bbe829d7eb5bb04661f5df3b/687474703a2f2f6772617065736a732e636f6d2f6173736574732f696d616765732f676a732d636f6e636570742e706e67"&gt;&lt;img src="https://camo.githubusercontent.com/832b89f1a1f52cb3cd661c4e1bdba52a00424a92bbe829d7eb5bb04661f5df3b/687474703a2f2f6772617065736a732e636f6d2f6173736574732f696d616765732f676a732d636f6e636570742e706e67" alt="GrapesJS - Style Manager" height="400"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;Generally any 'template system', that you'd find in various applications like CMS, is composed by the &lt;strong&gt;structure&lt;/strong&gt; (HTML), &lt;strong&gt;style&lt;/strong&gt; (CSS) and &lt;strong&gt;variables&lt;/strong&gt;, which are then replaced with other templates and contents on server-side and rendered on client.&lt;/p&gt;
&lt;p&gt;This demos show examples of what is possible to achieve:&lt;br&gt;
Webpage Demo - &lt;a href="http://grapesjs.com/demo.html" rel="nofollow noopener noreferrer"&gt;http://grapesjs.com/demo.html&lt;/a&gt;&lt;br&gt;
Newsletter Demo - &lt;a href="http://grapesjs.com/demo-newsletter-editor.html" rel="nofollow noopener noreferrer"&gt;http://grapesjs.com/demo-newsletter-editor.html&lt;/a&gt;&lt;br&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Table of contents&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/GrapesJS/grapesjs#features" rel="noopener noreferrer"&gt;Features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/GrapesJS/grapesjs#download" rel="noopener noreferrer"&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/GrapesJS/grapesjs" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;So I passed a very long time to integrate a Symfony app with grapesjs. Then I finally did it.&lt;/p&gt;

&lt;p&gt;And after some very long time, I decided to split my app into many bundles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Security: Auth bundle&lt;/li&gt;
&lt;li&gt;Web: Website Builder bundle&lt;/li&gt;
&lt;li&gt;Multimedia: Image handling and optimisation bundle&lt;/li&gt;
&lt;li&gt;Framework: Admin panel, and "glue" bundle&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So from there, everything was fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concerns about documentation
&lt;/h2&gt;

&lt;p&gt;Documentation is key to a Good software. Nowadays, I pass more time reading documentation then watching or reading tutorials as I used to.&lt;/p&gt;

&lt;p&gt;So I set a CI pipeline that generates a PHP API documentation of the entire code using &lt;a href="https://phpdoc.org/" rel="noopener noreferrer"&gt;phpdocumentor&lt;/a&gt;. I also have a code metrics documentation generation using &lt;a href="https://www.phpmetrics.org/documentation/how-to-understand-metrics.html" rel="noopener noreferrer"&gt;phpmetrics&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concerns about code quality
&lt;/h2&gt;

&lt;p&gt;Time passed, I wanted to propose this software to enterprises. But I was thinking: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;is there a way, as a sales pitch, to prove that this app meet high code quality standard?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What I meant by quality standard is the following:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Can I prove that my App, under normal and documented usage, won't ever break?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I did some research and found out that there are tools that try to assess the code Quality Standard. Being Symfony project, I have to focus on tools for PHP. I first integrated &lt;a href="https://psalm.dev/" rel="noopener noreferrer"&gt;Psalm&lt;/a&gt;. Then I thought that, having only 1 tool wouldn't be enough: So I decided that I would add another one called &lt;a href="https://phpstan.org/" rel="noopener noreferrer"&gt;PHPStan&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Both of these are set into the highest level of code quality, and I can tell that it hurts my developing speed a lot. Because I have it running on local with git hooks (in every code commits) and in the Gitlab Pipeline. Now I pass more time proving that my code is correct, then programming a feature. However, when I deploy my code, let me tell you that it runs, and I can use it with all confidence in it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concerns about security
&lt;/h2&gt;

&lt;p&gt;Last week, I saw with, my bare eye, a pretty clever phishing attempt. A mail sent through the owners email (something only available when you have the creds of the app).&lt;/p&gt;

&lt;p&gt;Then I thought to myself: the only viable way to access it, is by having infiltrated an insecure webapp and grab the SMTP credentials.&lt;/p&gt;

&lt;p&gt;The credentials were changed, the service and the service was shutdown.&lt;/p&gt;

&lt;p&gt;Then I thought to myself: What if that happened to a customer of mine? What if it was my app that was compromised? &lt;/p&gt;

&lt;p&gt;So I decided to learn a lot more about cybersecurity options for development and deployment. I saw things such as Web Application FireWalls (WAFs), attacking honeypots . . . and then I found out about the OWASP Application Security Verification Standard (ASVS). Which is a set of standard to secure web applications.&lt;/p&gt;

&lt;p&gt;I started reading each one of them (from the most essential test (l1), to the most hard (l3)). And I thought:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Those are things I take for granted. But, can I prove it? Am I 100% sure that I'm protected from these kind of attacks?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So now, I am on my way to secure my bundles.&lt;/p&gt;

&lt;p&gt;If you are interested, you can check my projects on &lt;a href="https://packagist.org/search/?query=seigicms" rel="noopener noreferrer"&gt;packagist.org&lt;/a&gt; looking for seigicms. Some of these bundles have near 1000 downloads, which I think is AI testing my code (by the way, I don't use LLM, a.k.a AI, to write blog posts, nor my codes).&lt;/p&gt;

&lt;p&gt;Also, talking about AI, some AI companies have checked my code and commented on it for security purpose. I think it is now time to secure my bundles. &lt;/p&gt;

&lt;h2&gt;
  
  
  Some interesting though
&lt;/h2&gt;

&lt;p&gt;In the era of AI, does AI even take this into consideration? Security concerns? Some news article, like one from then &lt;a href="https://www.ncsc.gov.uk/blogs/the-vibe-coding-spectrum-approach-to-ai-assisted-software-development" rel="noopener noreferrer"&gt;National Cyber Security Centre&lt;/a&gt;, suggest to now vibe code, and use a manual approach, when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;building authentication or authorisation logic &lt;/li&gt;
&lt;li&gt;processing sensitive personal data &lt;/li&gt;
&lt;li&gt;handling secrets, tokens, or credentials.&lt;/li&gt;
&lt;li&gt;anything safety critical, for example in Critical National Infrastructure (CNI). &lt;/li&gt;
&lt;li&gt;the consequences of a security flaw would be significant&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Can you prove that your tool, built by AI, respect these concerns? I think it is very hard...&lt;/p&gt;

&lt;h2&gt;
  
  
  Attibutions
&lt;/h2&gt;

&lt;p&gt;A big thanks to &lt;a href="https://www.pexels.com/@cottonbro/" rel="noopener noreferrer"&gt;@cottonbro&lt;/a&gt; for the pexels for this image.&lt;/p&gt;

&lt;p&gt;And a big thanks to all who have read the article. &lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>programming</category>
      <category>security</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
