teedmaker / tmphp-server-info
Get info from actual server
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/teedmaker/tmphp-server-info
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
😉