From 0b48ab9d022097bae51486a0bdd5e4489ecfd2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Wed, 21 Nov 2018 20:01:43 +0100 Subject: [PATCH] Updated the documentation --- doc/index.md | 8 ++--- doc/installation.md | 10 +++--- doc/usage.md | 82 +-------------------------------------------- mkdocs.yml | 2 +- 4 files changed, 10 insertions(+), 92 deletions(-) diff --git a/doc/index.md b/doc/index.md index 574baae..aef7fde 100644 --- a/doc/index.md +++ b/doc/index.md @@ -1,12 +1,10 @@ # Gitea for PHP +![Gitea](img/gitea.png) -## Yet another implementation of enumerated types -This implementation, based on [traits](https://secure.php.net/manual/en/language.oop5.traits.php), does not try to reproduce the semantics of traditional enumerations, like the ones found in C# or Java languages. - -Unlike other [PHP](https://secure.php.net) implementations, like the [SplEnum](https://secure.php.net/manual/en/class.splgitea.php) class, it does not rely on object instances. Instead, it just gives a set of static methods to ease working with the `public` constants of a class representing an enumerated type. +[Gitea](https://gitea.io) client library, in [PHP](https://secure.php.net). ## Quick start -Install the latest version of **Enums for PHP** with [Composer](https://getcomposer.org): +Install the latest version of **Gitea for PHP** with [Composer](https://getcomposer.org): ```shell composer require sab-international/gitea diff --git a/doc/installation.md b/doc/installation.md index 1b9ad99..c1f6b5b 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -1,20 +1,20 @@ # Installation ## Requirements -Before installing **Enums for PHP**, you need to make sure you have [PHP](https://secure.php.net) +Before installing **Gitea for PHP**, you need to make sure you have [PHP](https://secure.php.net) and [Composer](https://getcomposer.org), the PHP package manager, up and running. !!! warning - Enums for PHP requires PHP >= **7.2.0**. + Gitea for PHP requires PHP >= **7.2.0**. You can verify if you're already good to go with the following commands: ```shell php --version -# PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) +# PHP 7.2.10-0ubuntu1 (cli) (built: Sep 13 2018 13:38:55) ( NTS ) composer --version -# Composer version 1.7.2 2018-08-16 16:57:12 +# Composer version 1.7.3 2018-11-01 10:05:06 ``` !!! info @@ -35,5 +35,5 @@ Now in your [PHP](https://secure.php.net) code, you can use: ```php 0, "MONDAY" => 1, "TUESDAY" => 2, "WEDNESDAY" => 3, "THURSDAY" => 4, "FRIDAY" => 5, "SATURDAY" => 6] - -DayOfWeek::getNames(); -// ["SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"] - -DayOfWeek::getValues(); -// [0, 1, 2, 3, 4, 5, 6] -``` +TODO: document the usage of the **Gitea for PHP** library. diff --git a/mkdocs.yml b/mkdocs.yml index 92609d2..e8ce0ca 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: SAB Rich Text Editor -site_description: A customized build of CKEditor, a rich text editor. +site_description: Gitea client library, in PHP. site_author: SAB International - contact@sabcomputer.com site_url: https://dev.sabcomputer.com/gitea.php