A simple educational PHP application that demonstrates how to read and process XML data using PHP's SimpleXML extension.
The application receives a user's name and date of birth, identifies the corresponding zodiac sign based on predefined date ranges stored in an XML file, and displays the related horoscope.
- HTML form for user input
- PHP form processing
- XML data parsing using SimpleXML
- Zodiac sign identification based on date of birth
- Responsive interface using Bootstrap 5
- PHP
- HTML5
- CSS3
- Bootstrap 5
- XML
- SimpleXML
.
├── index.php
├── signos.php
├── signos.xml
└── estilo.css
- Clone this repository.
git clone https://github.com/FelicioX/php-xml-zodiac.git- Place the project inside your local web server directory.
Example:
- XAMPP →
htdocs - WAMP →
www
-
Start Apache.
-
Open your browser.
http://localhost/php-xml-zodiac/
This project was developed as a practical exercise to demonstrate:
- XML document manipulation
- Reading structured data using SimpleXML
- Form processing with PHP
- Date comparison
- Basic web application development
Possible improvements include:
- Input validation
- Object-oriented architecture
- MVC structure
- XML schema validation
- Unit testing
- Internationalization
Felicio Xavier
Software Engineer