Skip to content

Commit 154803b

Browse files
committed
Rollback changes that broke README, composer and packagist.
1 parent 17492b0 commit 154803b

3 files changed

Lines changed: 1553 additions & 43 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
_An RTF to HTML converter in PHP_
44

5-
Este é um projeto proveniente do renck/rtfhtml onde consegui encontrar o que eu tanto precisava par aum projeto
5+
In a recent project, I desperately needed an RTF to HTML converter written in PHP. Googling around turned up some matches, but I could not get them to work properly. Also, one of them called `passthru()` to use a RTF2HTML executable, which is something I didn’t want. I was looking for an RTF to HTML converter written purely in PHP.
66

7-
## Como usar
7+
Since I couldn’t find anything ready-made, I sat down and coded one up myself. It’s short, and it works, implementing the subset of RTF tags that you’ll need in HTML and ignoring the rest. As it turns out, the RTF format isn’t that complicated when you really look at it, but it isn’t something you code a parser for in 15 minutes either.
88

9-
Para usar o código:
9+
## How to use it
10+
11+
Install this package using composer. Then do this:
1012

1113
```php
1214
use RtfHtmlPhp\Document;
@@ -40,10 +42,9 @@ $formatter = new HtmlFormatter('UTF-8');
4042
## Install via Composer
4143

4244
```shell
43-
composer require rafaelapuka/rtf-to-html
45+
composer require henck/rtf-to-html
4446
```
4547

4648
## Caveats
4749

4850
* Please note that rtf-html-php requires your PHP installation to support the `mb_convert_encoding` function. Therefore you must have the `php-mbstring` module installed. For fresh PHP installations, it will usually be there.
49-

composer.json

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,28 @@
1-
{
2-
"name": "rafaelapuka/rtf-html-php",
3-
"description": "Livraria baseada em henck/rtf-html-php para transformar rtf em html",
4-
"type": "library",
5-
"keywords": [ "composer", "json", "generator" ],
6-
"license": "MIT",
7-
"authors": [ { "name": "Claudio Rafael",
8-
"email": "rafaelskillus@msn.com",
9-
"homepage": "https://twitter.com/rafaelapuka",
10-
"role": "Developer" } ],
11-
12-
"repositories": [
131
{
14-
"type": "package",
15-
"package": {
16-
"name": "example-package-name", //give package name to anything, must be unique
17-
"version": "1.0",
18-
"source": {
19-
"url": "https://github.com/rafaelapuka/rtf-html-php.git", //git url
20-
"type": "git",
21-
"reference": "master" //git branch-name
22-
}
2+
"name": "henck/rtf-html-php",
3+
"description": "RTF to HTML converter in PHP",
4+
"keywords": ["rtf", "converter"],
5+
"type": "library",
6+
"version": "1.1",
7+
"license": "GPL-2.0",
8+
"authors": [
9+
{
10+
"name": "Alexander van Oostenrijk",
11+
"email": "alex.vanoostenrijk@gmail.com"
2312
}
24-
}],
25-
"require": {
26-
"php": "^7.4",
27-
"ext-json": "*" },
28-
"require-dev": {
29-
"phpunit/phpunit": "^8.0" },
30-
"autoload": {
31-
"psr-4": { "ComposerJson\\": "./src/" } },
32-
"autoload-dev": {
33-
"psr-4": {
34-
"ComposerJson\\Tests\\": "./tests/"
35-
}
36-
}
13+
],
14+
"scripts": {
15+
"test": [
16+
"phpunit tests"
17+
]
18+
},
19+
"require": {},
20+
"autoload": {
21+
"psr-4": {
22+
"RtfHtmlPhp\\": "src/"
23+
}
24+
},
25+
"require-dev": {
26+
"phpunit/phpunit": "7"
27+
}
3728
}

0 commit comments

Comments
 (0)