Skip to content

abelrizky2002/phpchat1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

PHP AI Keyword Extractor: A Technical Practice

Overview

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 Goal

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 .env files to protect sensitive data (API Keys) from being pushed to public repositories.

Current Implementation

While the code is simple, it successfully:

  1. Takes user input in Japanese.
  2. Prompts the AI to identify the most relevant keyword.
  3. 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.

About

A technical practice project exploring PHP cURL and OpenAI API integration for keyword extraction and translation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages