This repository is a part of my learning journey in PHP and API integration. It serves as a practical exercise to understand how to bridge a local PHP environment with modern Large Language Models (LLMs).
The primary objective of this project was to practice:
- API Connectivity: Implementing cURL to communicate with the OpenAI API.
- Data Handling: Processing JSON responses and extracting specific information.
- Environment Management: Learning how to use
.envfiles to protect sensitive data (API Keys) from being pushed to public repositories.
While the code is simple, it successfully:
- Takes user input in Japanese.
- Prompts the AI to identify the most relevant keyword.
- Displays the keyword alongside its English translation.
Status: Completed Practice Project This project was developed with the assistance of AI tools to explore best practices in modern PHP development.