Set of functionalities enable Arabic website developers to serve professional search, present and process Arabic content in PHP

Fund package maintenance!
khaled-alshamaa

Installs: 857 073

Dependents: 12

Suggesters: 0

Security: 0

Stars: 260

Watchers: 20

Forks: 47

Open Issues: 6

v6.3.4 2023-04-04 22:05 UTC

This package is auto-updated.

Last update: 2024-04-16 19:04:08 UTC


README

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b68616c65642e616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b68616c65642e616c7368616d61612f61722d706870 Contributor Covenant 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b68616c65642e616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6b68616c65642e616c7368616d61612f61722d706870 68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d68747470732533412532462532466769746875622e636f6d2532466b68616c65642d616c7368616d616125324661722d70687026636f756e745f62673d253233373943383344267469746c655f62673d2532333535353535352669636f6e3d2669636f6e5f636f6c6f723d253233453745374537267469746c653d6869747326656467655f666c61743d66616c736568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6b68616c65642d616c7368616d61612f61722d706870 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6b68616c65642d616c7368616d61612f61722d7068703f7374796c653d736f6369616c 68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f61727068703f7374796c653d736f6369616c

ar-php_256.png

Ar-PHP Project (ar-php.org)

PHP Speaks Arabic - Be Ready!

Copyright © 2006-2023 Khaled Al-Sham'aa.

DOI

العربية

Mission & Vision

As has happened in the Far East and Latin America, as the Internet goes to the masses, people want it in their native language.

Our mission is to develop open source solutions and provides professional support helps small and medium size companies meet the challenges of developing professional Arabic websites in the PHP/MySQL environment, the library that we develop helps our partners in save time and increase productivity.

This project provides a set of tools that enable Arabic website developers to serve professional search, present and process Arabic content in PHP.

Easy Installation

List of Main Functionalities

Change Log

Class Documentation

Migrating from Version 4.0

Contributors Logistics

How to Contribute?

Professional Support

Citation

If you would cite it in academic work, you can use this citation

K. Al-Shamaa, Ar-PHP, PHP library for website developers to process Arabic content, 
https://github.com/khaled-alshamaa/ar-php, 2023

or in bibtex format

@misc{ar-php,
  title={Ar-PHP, PHP library for website developers to process Arabic content},
  author={Al-Shamaa, Khaled},
  url={https://github.com/khaled-alshamaa/ar-php},
  version = {6.3.4},
  year={2023}
}

Where it has been used?

  • Akeneo: The easy and flexible open source SaaS PIM to organize and enrich your product catalog. [check it out here]

  • Bagisto: Laravel package for e-commerce. [check it out here]

  • LimeSurvey: Open-source survey software. [check it out here and here]

  • ArabKey: Easy way to switch between Arabic and English keyboard, and more useful tools for Arabic language [check it out here].

Arabic Language

Worldwide Internet use has grown tremendously in recent years, most rapidly in non-English speaking regions especially in Arab world. For example, from 2000 to 2020, the online populations grew by more than 9,300 %. Meanwhile, Arabic Web content was estimated to be doubling every year. Such growth has created demand for better websites developing resources in Arabic language. However, existing websites developing resources may be unable to meet it because they primarily serve English-speaking users.

[Arabic language, Internet world stats]

PHP

PHP is a widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP runs more than 79% of all the top 10 million worldwide web sites a few very good examples are Facebook and Wikipedia.

[PHP language, Server-side languages report]

LGPL

The main difference between the GPL and the LGPL is that the latter can be linked to (in the case of a library, 'used by') a non-(L)GPLed program, which may be free software or proprietary software. This non-(L)GPLed program can then be distributed under any chosen terms if it is not a derivative work.

[LGPL, GNU FAQ]

History

129626204-d354e794-bfbf-4f3c-bc22-27e7fc252701.png

محاضرة افتتاحية عن تجربة بناء ادوات لدعم اللغة العربية و المشاريع مفتوحة المصدر - خالد الشمعة

Top

Quick Start

Install with Composer

To install with Composer, simply require the latest version of this package.

composer require khaled.alshamaa/ar-php

Make sure that the autoload file from Composer is loaded. if you are using composer for autoloading like what Laravel framework does, you don't have to do that.

// somewhere early in your project's loading, require the Composer autoloader
// see: http://getcomposer.org/doc/00-intro.md
require 'vendor/autoload.php';

Download and Install (Manually)

Download the latest release of Ar-PHP library and extract it into the directory where it will be used.

require_once 'ar-php/src/Arabic.php';

Main Functionalities

Top

How to Contribute?

We always welcome new contributors – especially new programmers. But no matter what your skills and interests are, there is a place where you can participate to improve Ar-PHP project:

  • Programming: Here are some ideas for contribution: Review the To-Dos, add a feature, contribute to a core module, create an extension, and fix a bug.
  • Quality Assurance: Quality Assurance (QA) is one of the most important but understated elements of any software community project. It is also something most people can do. If you want to help fix Ar-PHP bugs, and you are not a programmer, you can still help by joining the QA team.
  • Writing: One of the best ways to contribute to Ar-PHP is to write tutorials, guides, HOWTOs and FAQs. Here are some ideas for contribution: User FAQs, HOW-Tos and Tutorials, User Guide, Development Primer, Blog Posts, and Article for a Magazine.
  • Marketing: You can always help promote the use of Ar-PHP. Here are two ways you can help: Join the marketing events, distribute Ar-PHP, and Ar-PHP brochure.
  • Graphics and Art: Have any art skills? Then you can help us create icons, logos, banners, labels, wallpapers, screen savers, and more! These will be seen every day and used throughout the project and its products.
  • Helping Users: There are two ways you can help other users: Users mailing list, and forums.
  • Celebrate with us! Your task is to take a picture of yourself supporting PHP and Arabic language project. You can go to a famous landmark, your favorite place nearby, or anywhere you think will make for a great photo. We've created some posters for you to use in your pictures. Print out one of these designs or design your own. We want to see you and your location prominently displayed in the picture, so don't let one of them dominate the photo. And we should clearly see your Ar-PHP poster too. Once you have your photos ready to submit, email them to us. Please send your photos in .jpg or .png formats and at least 1200 x 800 pixels in size.

Top

Professional Support

As the developers of Ar-PHP project, we can help your company leverage the maximum power of Ar-PHP to achieve your business goals. We offer professional services that span the full life-cycle of Ar-PHP implementation.

  • Ar-PHP Library Integration: Having trouble getting started with Ar-PHP? We can help.
  • Ar-PHP Upgrades: For smooth upgrade to a newer version of Ar-PHP, let us assist you.
  • Customization and Configuration: If your business requires functionality beyond or different from that of the feature set of Ar-PHP, our team of PHP and Arabic language experts can fully tailor Ar-PHP to meet your specific business needs.
  • Integration Analysis and Implementation: Arabic localization may be just a component of your entire online business operation. We have the knowledge and experience to integrate Ar-PHP with all the arms of your operation.
  • Troubleshooting, Optimization and Performance Tuning: For increased performance and bottleneck resolution let an Ar-PHP expert look under the hood of your Ar-PHP implementation and server environment.
  • Consulting: At any point in the implementation of Ar-PHP you can call upon a Ar-PHP expert to verify that your implementation follows industry best practices.
  • Training: Get comprehensive training for Ar-PHP.

Top