-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ESLKem/1.0.0-dev
Initial release
- Loading branch information
Showing
106 changed files
with
18,499 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vendor/ | ||
.vscode/ | ||
composer.lock | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# GBX Parser | ||
This component is written to parse Maniaplanet engine's produced GBX Map files and extract useful information from it. | ||
**Note:** this package requires a 64-bit PHP installation to function properly. | ||
|
||
# Installation | ||
Just run `$ composer require 'eslkem/gbx-parser'` or add `"eslkem/gbx-parser": "^1.0` line to your composer.json file followed by a `$ composer install` or `$composer update` command. | ||
|
||
# Setup and usage | ||
Using the package is straight forward: do not forget to include | ||
```php | ||
require_once __DIR__.'/vendor/autoload.php'; | ||
``` | ||
and use the following classes: | ||
```php | ||
use ESLKem\GBXParser\Parser; | ||
use ESLKem\GBXParser\Models\Map; | ||
``` | ||
Sample usage: | ||
```php | ||
$map = Parser::parse('./path/to/file.gbx'); | ||
echo $map->getName(); | ||
``` | ||
# Documentation | ||
The full documentation is available in the `/docs` folder. A web browser is required to view it locally. | ||
|
||
# Testing | ||
This package is tested using PHPUnit. To run the tests, simply execute `$ ./vendor/bin/phpunit`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "eslkem/gbx-parser", | ||
"description": "This package is made to parse Maniaplanet's GBX files and extract useful information from them.", | ||
"keywords": ["gbx", "parser", "maniaplanet"], | ||
"license": "GPL-3.0-or-later", | ||
"authors": [ | ||
{ | ||
"name": "Aleksas Legačinskas", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"type": "library", | ||
"require": { | ||
"php-64bit": ">=7.1", | ||
"sabre/xml": "^2.1", | ||
"intervention/image": "^2.4" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^7", | ||
"phpdocumentor/phpdocumentor": "2.*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"ESLKem\\GBXParser\\": "src/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Fixes a vulnerability in CentOS: http://stackoverflow.com/questions/20533279/prevent-php-from-parsing-non-php-files-such-as-somefile-php-txt | ||
<FilesMatch \.php\.txt$> | ||
RemoveHandler .php | ||
ForceType text/plain | ||
</FilesMatch> |
Binary file added
BIN
+7.11 KB
docs/build/phpdoc-cache-21/phpdoc-cache-file_b73e48487d1df9e173b72975d5ff5c7a.dat
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.5 KB
docs/build/phpdoc-cache-78/phpdoc-cache-file_d1f27d81b2d8572b713b0814093d5400.dat
Binary file not shown.
Binary file added
BIN
+7.77 KB
docs/build/phpdoc-cache-7f/phpdoc-cache-file_238d87dcc1269696b62ddf018110a53a.dat
Binary file not shown.
Binary file added
BIN
+6.51 KB
docs/build/phpdoc-cache-9d/phpdoc-cache-file_460f85eeac97a24e2f838e6d039bfd88.dat
Binary file not shown.
Binary file added
BIN
+7.12 KB
docs/build/phpdoc-cache-b9/phpdoc-cache-file_b2797668bf94e05dda3149fc5540874e.dat
Binary file not shown.
Binary file added
BIN
+8.11 KB
docs/build/phpdoc-cache-de/phpdoc-cache-file_cac50fdb70110ff24f5dd824319f7725.dat
Binary file not shown.
Binary file added
BIN
+67.2 KB
docs/build/phpdoc-cache-e2/phpdoc-cache-file_037865b8555f7db5ac9338cfb5be7466.dat
Binary file not shown.
Binary file added
BIN
+90.3 KB
docs/build/phpdoc-cache-ea/phpdoc-cache-file_cad17d46fd6b95932663c87d89e9691b.dat
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.viewer { | ||
-ms-touch-action: none; | ||
} | ||
|
||
.iviewer_common { | ||
position:absolute; | ||
bottom:10px; | ||
border: 1px solid #000; | ||
height: 28px; | ||
z-index: 5000; | ||
} | ||
|
||
.iviewer_cursor { | ||
cursor: url(../images/iviewer/hand.cur) 6 8, pointer; | ||
} | ||
|
||
.iviewer_drag_cursor { | ||
cursor: url(../images/iviewer/grab.cur) 6 8, pointer; | ||
} | ||
|
||
.iviewer_button { | ||
width: 28px; | ||
cursor: pointer; | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.iviewer_zoom_in { | ||
left: 20px; | ||
background: url(../images/iviewer/iviewer.zoom_in.png); | ||
} | ||
|
||
.iviewer_zoom_out { | ||
left: 55px; | ||
background: url(../images/iviewer/iviewer.zoom_out.png); | ||
} | ||
|
||
.iviewer_zoom_zero { | ||
left: 90px; | ||
background: url(../images/iviewer/iviewer.zoom_zero.png); | ||
} | ||
|
||
.iviewer_zoom_fit { | ||
left: 125px; | ||
background: url(../images/iviewer/iviewer.zoom_fit.png); | ||
} | ||
|
||
.iviewer_zoom_status { | ||
left: 160px; | ||
font: 1em/28px Sans; | ||
color: #000; | ||
background-color: #fff; | ||
text-align: center; | ||
width: 60px; | ||
} | ||
|
||
.iviewer_rotate_left { | ||
left: 227px; | ||
background: #fff url(../images/iviewer/iviewer.rotate_left.png) center center no-repeat; | ||
} | ||
|
||
.iviewer_rotate_right { | ||
left: 262px; | ||
background: #fff url(../images/iviewer/iviewer.rotate_right.png) center center no-repeat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
To modify your generated font, use the *dev.svg* file, located in the *fonts* folder in this package. You can import this dev.svg file to the IcoMoon app. All the tags (class names) and the Unicode points of your glyphs are saved in this file. | ||
|
||
See the documentation for more info on how to use this package: http://icomoon.io/#docs/font-face |
17 changes: 17 additions & 0 deletions
17
docs/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.dev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.27 KB
docs/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.eot
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
docs/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.03 KB
docs/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.ttf
Binary file not shown.
Binary file added
BIN
+1.79 KB
docs/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.woff
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ | ||
|
||
window.onload = function() { | ||
function addIcon(el, entity) { | ||
var html = el.innerHTML; | ||
el.innerHTML = '<span style="font-family: \'phpdocumentor-clean-icons\'">' + entity + '</span>' + html; | ||
} | ||
var icons = { | ||
'icon-trait' : '', | ||
'icon-interface' : '', | ||
'icon-class' : '' | ||
}, | ||
els = document.getElementsByTagName('*'), | ||
i, attr, html, c, el; | ||
for (i = 0; ; i += 1) { | ||
el = els[i]; | ||
if(!el) { | ||
break; | ||
} | ||
attr = el.getAttribute('data-icon'); | ||
if (attr) { | ||
addIcon(el, attr); | ||
} | ||
c = el.className; | ||
c = c.match(/icon-[^\s'"]+/); | ||
if (c && icons[c[0]]) { | ||
addIcon(el, icons[c[0]]); | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@font-face { | ||
font-family: 'phpdocumentor-clean-icons'; | ||
src:url('fonts/phpdocumentor-clean-icons.eot'); | ||
src:url('fonts/phpdocumentor-clean-icons.eot?#iefix') format('embedded-opentype'), | ||
url('fonts/phpdocumentor-clean-icons.woff') format('woff'), | ||
url('fonts/phpdocumentor-clean-icons.ttf') format('truetype'), | ||
url('fonts/phpdocumentor-clean-icons.svg#phpdocumentor-clean-icons') format('svg'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
/* Use the following CSS code if you want to use data attributes for inserting your icons */ | ||
[data-icon]:before { | ||
font-family: 'phpdocumentor-clean-icons'; | ||
content: attr(data-icon); | ||
speak: none; | ||
font-weight: normal; | ||
font-variant: normal; | ||
text-transform: none; | ||
line-height: 1; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
|
||
/* Use the following CSS code if you want to have a class per icon */ | ||
/* | ||
Instead of a list of all class selectors, | ||
you can use the generic selector below, but it's slower: | ||
[class*="icon-"] { | ||
*/ | ||
.icon-trait, .icon-interface, .icon-class { | ||
font-family: 'phpdocumentor-clean-icons'; | ||
speak: none; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-variant: normal; | ||
text-transform: none; | ||
line-height: 1; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
.icon-trait:before { | ||
content: "\e000"; | ||
} | ||
.icon-interface:before { | ||
content: "\e001"; | ||
} | ||
.icon-class:before { | ||
content: "\e002"; | ||
} |
Oops, something went wrong.