Skip to content

AlMosahih-ASC/arphpapi_docker_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

Arabic NLP API - Powered by ArPHP and Al-Mosahih ASC

Version

A comprehensive Docker container providing REST API endpoints for Arabic language processing powered by the ArPHP library. This repo is for techincal support purposes. You can download the image from this link: https://hub.docker.com/r/asc7team/arphpapi

Quick Start

# Pull the image
docker pull asc7team/arphpapi:latest

# Run the container
docker run -d -p 8080:80 --name arphp asc7team/arphpapi:latest

# Test the API
curl -X POST http://localhost:8080/spell-check \
  -H "Content-Type: application/json" \
  -d '{"text":"Ω…Ψ±Ψ­Ψ¨Ψ§ Ψ¨ΩƒΩ…"}'

What's Inside

This container provides 15+ Arabic NLP endpoints for:

  • βœ… Spell checking with intelligent suggestions (powered by Al-Mosahih ASC Open Source)
  • πŸ“Š Sentiment analysis for Arabic content
  • πŸ—£οΈ Dialect identification (MSA, Egyptian, Gulf, etc.)
  • πŸ”„ Arabic-English transliteration (bidirectional)
  • πŸ”’ Number to Arabic words with proper grammar
  • ⌨️ Keyboard layout correction (AR/EN)
  • πŸ“… Hijri calendar conversion and formatting
  • πŸ•Œ Prayer times calculator with Qibla direction
  • πŸ“ Text summarization with keyword extraction
  • πŸ‘€ Gender detection from Arabic names
  • πŸ” Arabic-friendly SQL query generation
  • πŸ“Š Text similarity comparison
  • 🎡 Arabic Soundex for phonetic matching

API Examples

Spell Check

POST /spell-check
{"text": "ΩƒΨͺΨ§Ψ¨"}

Transliterate

POST /transliterate
{"text": "marhaba", "direction": "en2ar"}

Prayer Times

POST /prayer-times
{
  "latitude": 21.4225,
  "longitude": 39.8262,
  "timezone": 3,
  "elevation": 277
}

Number to Arabic

POST /spell-number
{"number": 1234, "format": "money"}

Use Cases

  • πŸ›’ E-commerce platforms (Arabic product search, price formatting)
  • πŸ“± Mobile apps (prayer times, Islamic calendars)
  • πŸ’¬ Chat applications (sentiment analysis, dialect detection)
  • πŸ“° Content management (spell checking, summarization)
  • πŸ”Ž Search engines (phonetic matching, query enhancement)
  • πŸ“Š Analytics platforms (Arabic text processing)

Architecture

  • Base: PHP 8.x with Apache
  • Library: ArPHP - PHP Arabic library version 7.0

Documentation

Full API documentation available at: http://localhost:8080/ (when container is running)

Tags

  • latest - Latest stable release
  • 1.0.0 - Specific version

Support

License

GNU Lesser General Public License


Made for developers building Arabic-first applications πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published