Skip to content

FelicioX/php-xml-zodiac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP XML Zodiac

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.


Features

  • 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

🛠 Technologies

  • PHP
  • HTML5
  • CSS3
  • Bootstrap 5
  • XML
  • SimpleXML

Project Structure

.
├── index.php
├── signos.php
├── signos.xml
└── estilo.css

How to Run

  1. Clone this repository.
git clone https://github.com/FelicioX/php-xml-zodiac.git
  1. Place the project inside your local web server directory.

Example:

  • XAMPP → htdocs
  • WAMP → www
  1. Start Apache.

  2. Open your browser.

http://localhost/php-xml-zodiac/

Learning Objectives

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

Future Improvements

Possible improvements include:

  • Input validation
  • Object-oriented architecture
  • MVC structure
  • XML schema validation
  • Unit testing
  • Internationalization

Author

Felicio Xavier

Software Engineer

About

Educational PHP application demonstrating XML parsing and data processing using SimpleXML.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors