Skip to content

teedmaker/tmphp-server-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 😉

About

Uma biblioteca para gerenciar informações do servidor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages