Inside a CMS built from scratch

How it's done with Co-WordPress

Co-WorkPress is not a template or a WordPress site with plugins. It's a custom content management system, designed, programmed, tested, and deployed from start to finish. This page explains how: the technology, the decisions, and the way we work.

In figures

  • +1.400

    Automatic PHP tests and 160+ JavaScript tests, which are run before each version.

  • 6

    Languages ​​prepared in the system (Spanish, English, Catalan, Basque, Galician and Valencian).

  • 5

    User roles, plus a read-only demo account.

  • 0

    External resources on the public web: fonts, images and libraries are served from the server itself.

Technology

  • Backend

    Laravel 12 and PHP 8.3

    Logic, API, queues, scheduled tasks

  • Panel

    Filament 3 and Livewire 3

    Administration panel, roles and permissions

  • Editors

    Vue 3 and TipTap

    Visual builder, AI builder, rich text

  • Data

    MySQL / MariaDB

    Content, orders, translations

  • Compilation

    Vite

    JavaScript and CSS of the panel

  • Payments

    Stripe (Payment Element)

    Card, Bizum, PayPal, Apple Pay, Google Pay…

  • Server

    VPS in the EU with Plesk, Apache and PHP-FPM

    Production

The central idea: from AI-generated HTML to editable web

The problem: an AI generates a beautiful web design in seconds, but it's static HTML. To change the text, you have to edit the code.

The solution: an importer that analyzes the HTML and converts it into an editable page.

  • It detects text, images, links, buttons, galleries, and forms, and converts them into fields.
  • Download the images and fonts to the server: the website is independent of everyone.
  • Separate the headboard, body, and footboard so that changing one doesn't break the others.
  • Respect the design: the client changes the content, never the structure.
  • Two ways to edit: on the page itself (Visual mode) or with a list of fields (Text mode).
  • Custom prompts that explain to the AI ​​how to generate the HTML so that it imports correctly, with its accessibility rules, links, and languages.

True multilingual

Inspired by how the best translation systems work, but integrated into the core:

  • Each page, article, menu, product and form has its version per language, with its own address (/en/…), its SEO and its hreflang.
  • Detects outdated translations: each translation saves a trace of the original. If the original changes, the panel alerts you, and you can mark it as revised without retranslating.
  • System texts that can be translated from the panel (buttons, notices, emails), in the style of WPML's String Translation.
  • The links adapt automatically: a link to /contacto leads to /en/contact in the English version.
  • Automatic 301 redirects when the address of something published changes.
  • Emails in the customer's language: orders, invoices, and form responses.

A store with real payments (in test mode)

Try a purchase

Test card: 4242 4242 4242 4242 · Date: 12/34 · CVC: 123

  • Stripe Payment Element within the checkout itself: card with 3D Secure, Bizum, PayPal, Klarna, Apple Pay and Google Pay.
  • The keys are never stored in the database: they are kept in the server environment, with a restricted key with minimum permissions.
  • The order is only marked as paid when Stripe confirms it with a signed notice (webhook), processed only once even if it arrives repeatedly.
  • Double click without double charge, in three layers: the button is blocked, the server blocks the cart and Stripe receives an idempotence key.
  • Payments that fail: the cart is kept and the order remains "unpaid"; if no one pays, it expires automatically and the coupon is returned.
  • Separate testing mode for real: test orders go to a separate series of invoices marked "not valid for tax purposes" and never spend real money.
  • PDF invoices, coupons, stock, digital products and customer area.

Security: layered

No website is unhackable. The goal is to minimize risk and be able to recover quickly.

In the app

  • Two-step verification, captcha (Cloudflare Turnstile or reCAPTCHA) and attempt limits per IP and per account.
  • Roles and permissions verified on the server, not just by hiding buttons.
  • Service passwords (SMTP, payment notifications) encrypted in the database.
  • Uploads with a closed list of types and no code execution in public folders.
  • Security audit of the code itself, with the fixes deployed by blocks.

On the server

  • Security headers (HSTS, X-Frame-Options, nosniff, Referrer-Policy, Permissions-Policy) and Content-Security-Policy in report mode.
  • Fail2Ban with its own rule for the panel.
  • Firewall with only the necessary ports and a local database only.
  • Daily backups off the server, and crash monitoring every 5 minutes.

The public demo, a real case

Opening the production panel to just anyone requires caution. The demo account:

  • It cannot write anything: any writing to the database, to disk, by mail or to other servers is cut off before it can be executed;
  • View masked personal data (l***@domain.com, «L. G.») and business figures as example data;
  • This is verified with a test that runs through the entire panel as a demo, with recognizable data seeded: if a new screen shows something real, the test fails.

Quality: Tests and Deployments

Tests

  • More than 1,400 PHP tests and 160 JavaScript tests, with the complete suite passing before each version.
  • Tests that monitor rules, not just functions: that no delete action appears without red confirmation, that no new screen displays data to the demo, that no trial charge issues a license…

Deployments without scares

Each version is deployed using the same procedure:

  1. Package with your verified SHA-256 fingerprint.
  2. Copy the code and the database before touching anything.
  3. Dry test: it creates, changes, or deletes files, and stops if anything unexpected happens.
  4. Protected migrations: they are only executed if the pending ones are exactly as expected.
  5. Verification that the server executes the new code (cwp:comprobar-codigo), with the revision visible in the panel footer.
  6. Web testing, log review, and version tagging in Git.
  7. Guide to reverting each deployment.

Compliance: designed for Spain and Europe

  • Cookies according to the AEPD guide: accept and reject at the same level, prior blocking of analytics and videos, registration of consents.
  • GDPR: privacy checkboxes, scheduled deletion of data and attachments, personal data masked for demo.
  • Prices include VAT as required for sales to consumers.
  • Accessibility: alternative texts and editable and translatable labels; the public website passes the WAVE review.
  • Digitally signed licenses, with the root key outside the server and an intermediate issuer that can be revoked.

How I work

  • Plan first, then code. Every major change begins with a report or plan (what to change, risks, hours) that is approved before programming.
  • AI-assisted development, with human judgment. I use AI programming agents as part of the team; I decide the architecture, review each change, test in the browser, and deploy.
  • Short branches. One change per branch, each with its own deployment guide.
  • Safety comes first. People's safety and data take precedence over new features.

Do you want to see inside?

Try the panel now

Enter a read-only demo for one hour without a password.

Let's talk

If you're looking for someone to design, program, and bring a project like this to production, write to me.