Giter VIP home page Giter VIP logo

aip's Introduction

Arabic in PHP (AIP)

Latest Stable Version Total Downloads Latest Unstable Version License StyleCI

A simple PHP API extension that's provide arabic tools for PHP . https://github.com/buzzylab/aip

Note: AIP package is a built on the great library Ar-PHP (v4.0.0) which is developed by Khaled Al-Sham'aa.

Contents

Features

Installation

With Composer

$ composer require buzzylab/aip

Or Add "buzzylab/aip": "~1.0.*" to composer require :

{
    "require": {
        "buzzylab/aip": "~1.0.*"
    }
}

Native Integration

<?php
require 'vendor/autoload.php';

use Buzzylab\Aip\Arabic;

$arabic = new Arabic();

Laravel Integration

After installing the package, open your Laravel config file located at config/app.php and add the following service provider to the providers array:

Buzzylab\Aip\Laravel\AipServiceProvider::class

And add the following Facade to the aliases array

'Arabic'  => Buzzylab\Aip\Laravel\Facades\AipFacade::class 

Change log

Please see CHANGELOG for more information what has changed recently.

Issues

For the list of all current and former/closed issues see the github issue list. If you find a problem, please follow the same link and create an new issue, I will look at it and get back to you ASAP.

Contributing

I would be glad to accept your contributions if you want to participate and share. Just follow GitHub's guide on how to fork a repository. Clone your repository to your machine, make your change then create a pull request after submitting your change to your repository.

Credits & inspirations

It goes without saying that none of this could have been done without the great arphp library, a big thank you goes out to Khaled Al-Sham'aa.

License

The AIP is open-sourced software licensed under the MIT license.

aip's People

Contributors

ahmedash95 avatar maherelgamil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aip's Issues

normaliseHamza() converts numbers to letters

Example Usage
echo $arabic->normaliseHamza("10 ش أحمد عصمت");
Expected Output
10 ش احمد عصمت
Generated Output
يو ش احمد عصمت

Apparently, 0 converts to 'و' and 1 converts to 'ي'. I have tried other numbers and they do not generate this bug, only 1 and 0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.