Skip to content

Commit aa783bb

Browse files
committed
Init PHP version of Online tools
1 parent 08921b1 commit aa783bb

File tree

13 files changed

+4179
-2
lines changed

13 files changed

+4179
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+
.DS_Store

README.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
1-
# tools.haukurh.dev
2-
Online tools
1+
# Online tools
2+
Online tools which are helpful for debugging web-related things and problems. See on [tools.haukurh.dev](https://tools.haukurh.dev).
3+
4+
## Screenshot
5+
6+
![](assets/screenshot.png)
7+
8+
## Utilities
9+
10+
__Encode/Decode__
11+
12+
- HTML Entities
13+
- quoted-printable
14+
- URL
15+
- base64
16+
- JSON
17+
- PHP serialize
18+
19+
__Text manipulation__
20+
21+
- Lowercase
22+
- Uppercase
23+
- Sort ASC / DESC
24+
- Remove duplicates
25+
- Grab all emails from text
26+
- Reverse
27+
28+
__Date__
29+
30+
- UNIX time to date
31+
- Date to UNIX time
32+
33+
__HTML__
34+
35+
- Strip tags
36+
- Clean up HTML code
37+
- Beautify JS/HTML
38+
- Lorem Ipsum
39+
40+
__Browser__
41+
42+
- IP address
43+
- User agent

assets/screenshot.png

204 KB
Loading

autoload.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
spl_autoload_register(function ($class) {
4+
5+
6+
$prefix = 'Migrate\\';
7+
8+
$base_dir = __DIR__ . '/src/';
9+
10+
$len = strlen($prefix);
11+
if (strncmp($prefix, $class, $len) !== 0) {
12+
return;
13+
}
14+
15+
$relative_class = substr($class, $len);
16+
17+
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
18+
19+
if (file_exists($file)) {
20+
require $file;
21+
}
22+
});

public/favicon.png

2.76 KB
Loading

public/index.php

Lines changed: 302 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)