7 Commits

Author SHA1 Message Date
Abijeet Patro
6348e1589b Add phpunit configuration file
Use the configuration file to pass the location of the tests and
autoload class files.

Pass -sp to phpcs command
2020-05-18 15:45:15 +03:00
Abijeet
8b0ca32167 Move documentation to Read the Docs
Read the docs is used to host the documentation.
https://language-data.readthedocs.io/en/latest/

The following documentation has been moved,

* Introduction
* Using the PHP / Node.js libraries
* Adding new languages
* PHP API documentation

Updated the README.md to point to the new documentation.

Doxygen is used to pull out the PHPDoc comments into XML.
This is parsed via doxyphp2sphinx into Sphinx which is
then used by Read the docs to generate the documentation.

Read the docs has been configured to update the code documentation
under the docs/api folder automatically whenever a commit is made
so no manual work is needed.

Bug: T218639
2020-05-12 16:00:25 +03:00
Abijeet
09ab6024fe Add a PHP interface to work with the language data
Additional changes in this PR include,

  * Added composer.json
  * Refactored the folder structure.
  * Added editorconfig.
  * Added PHPCS and formatted existing code.
  * Changes to use a single license - GPL-2.0-or-later
  * ESLint related fixes

Bug: T218639
2020-01-31 23:00:46 +05:30
Santhosh Thottingal
124e8f7ed0 Update .gitignore 2019-08-29 17:05:05 +05:30
Santhosh Thottingal
e53d7d1250 Move to @wikimedia, version update, dependecy updates 2019-08-29 16:58:54 +05:30
Amir Aharoni
87b3fd8666 Add the Ol Chiki script (Olck), add getLanguages(), and fix the tests
The tests were using languageData.languages, which was undefined.
This patch adds a method to get all the languages to be able to test.
2018-08-12 21:09:50 +03:00
Santhosh Thottingal
09716e9ef3 Add .gitignore 2017-10-10 15:59:50 +05:30