teedmaker / tmphp-server-info
Get info from actual server
v1.5.3
2019-09-11 14:20 UTC
Requires
README
TMPHP Server Info
This project generate constants that can be used in PHP projects.
For example, you can get actual url access by user like a charm:
$base = BASE; ... echo "<a href=\"{$base}/new-url/test\">go to another page</a>";
Or, if you need the URL
containing all things, like: http://site.com/teste[?user=lorem]
Then, you can uses:
$url = ACTUAL; echo "<span>Real URL is: {$url}</a>";
Of course, you can use that in all places:
class AnotherClass { /** * This will return this url containing the base url */ public function getUrl(string $url) { return BASE . $url; } }
Ready to start?
You can see how to install here!
You can see how to use here!
Found a error or a possibility?
Fork it and send us a pull request
😉