Skip to content

Commit ca8fbf9

Browse files
authored
Merge branch 'master' into master
2 parents f7cd6d5 + 939d68e commit ca8fbf9

3 files changed

Lines changed: 42 additions & 1555 deletions

File tree

README.md

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

33
_An RTF to HTML converter in PHP_
44

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.
5+
Este é um projeto proveniente do renck/rtfhtml onde consegui encontrar o que eu tanto precisava par aum projeto
66

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.
7+
## Como usar
88

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

1311
```php
1412
use RtfHtmlPhp\Document;
@@ -42,7 +40,7 @@ $formatter = new HtmlFormatter('UTF-8');
4240
## Install via Composer
4341

4442
```shell
45-
composer require henck/rtf-to-html
43+
composer require rafaelapuka/rtf-to-html
4644
```
4745

4846
## Caveats

composer.json

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
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": [
113
{
2-
"name": "henck/rtf-html-php",
3-
"description": "RTF to HTML converter in PHP",
4-
"keywords": ["rtf", "converter"],
5-
"type": "library",
6-
"version": "1.2",
7-
"license": "GPL-2.0",
8-
"authors": [
9-
{
10-
"name": "Alexander van Oostenrijk",
11-
"email": "alex.vanoostenrijk@gmail.com"
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+
}
1223
}
13-
],
14-
"scripts": {
15-
"test": [
16-
"phpunit tests"
17-
]
18-
},
19-
"require": {
20-
"ext-mbstring": "*"
21-
},
22-
"autoload": {
23-
"psr-4": {
24-
"RtfHtmlPhp\\": "src/"
25-
}
26-
},
27-
"require-dev": {
28-
"phpunit/phpunit": "7"
29-
}
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+
}
3037
}

0 commit comments

Comments
 (0)