Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marwan-ahmed-23/text-analysis-service-php
Text Analysis Service is a lightweight PHP tool that provides detailed analysis of text.
https://github.com/marwan-ahmed-23/text-analysis-service-php
developer-tools language-detection nlp-tools open-source open-source-php php php-library php-scripts text-analysis text-mining text-utilities word-analysis
Last synced: 10 days ago
JSON representation
Text Analysis Service is a lightweight PHP tool that provides detailed analysis of text.
- Host: GitHub
- URL: https://github.com/marwan-ahmed-23/text-analysis-service-php
- Owner: marwan-ahmed-23
- License: mit
- Created: 2024-12-05T02:41:26.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-28T09:29:30.000Z (19 days ago)
- Last Synced: 2024-12-28T10:23:04.377Z (19 days ago)
- Topics: developer-tools, language-detection, nlp-tools, open-source, open-source-php, php, php-library, php-scripts, text-analysis, text-mining, text-utilities, word-analysis
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text Analysis Service (php)
Text Analysis Service is a lightweight PHP service designed to analyze textual data efficiently. This tool provides functionalities to extract insights such as:
- Word count
- Character count (excluding spaces)
- Sentence countIt serves as a quick solution for developers who need text analysis capabilities in their applications. The modular structure allows for easy integration and expansion of additional features in the future.
---
## Features
- Count the number of words in a text.
- Count the number of characters (excluding spaces).
- Count the number of sentences.## Installation
1. Clone the repository:
```bash
git clone https://github.com/marwan-ahmed-23/text-analysis-service-php.git
```
2. Navigate to the project directory.## Usage
Here’s a simple example of how to use the Text Analysis Service:```bash
require_once 'src/TextAnalyzer.php';use TextAnalysis\TextAnalyzer;
$text = "This is a sample text.";
$analysis = TextAnalyzer::analyze($text);
echo "Word Count: " . $analysis['word_count'] . "\n";
```## Directory Structure
```plaintext
text-analysis-service-php/
├── src/
│ └── TextAnalyzer.php
├── examples/
│ └── example.php
├── LICENSE
├── README.md
└── .gitignore
```## Contributing
Feel free to fork this repository and submit pull requests to enhance functionality or add features.## Show Your Support
If you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!