Interactive Model Builder
Coming soon! This interactive tool will help you build your PHersist models visually. You'll be able to define classes, properties, relationships, and maps through an intuitive interface.
🚧 Coming Soon
What to Expect
Visual Model Design
Intuitive interface to create and arrange your model classes with ease.
Relationship Mapping
Define one-to-many, many-to-one, and many-to-many relationships visually.
Property Configuration
Set up properties, data types, constraints, and validation rules.
XML Generation
Export your model configuration as PHersist-compatible XML files.
Alternative: Manual XML Creation
While you wait for the interactive builder, you can create your models manually using XML. Here's a quick example:
<project name="MyApp" namespace="MyApp">
<class name="User" table="users">
<property name="id" type="int" primary="true" auto-increment="true" />
<property name="email" type="string" length="255" unique="true" />
<property name="name" type="string" length="100" />
<property name="created_at" type="datetime" />
</class>
</project>
Learn more about the XML format in our documentation.