splx / helperurl
Helper URL класс с методом, который будет выводить URL текущей страницы
2.0.3
2019-02-10 11:51 UTC
Requires
- php: ^7.2
This package is auto-updated.
Last update: 2024-11-11 01:47:32 UTC
README
composer.json лоакльное подключение:
{
"name": "splaa/testblog",
"minimum-stability": "dev",
"repositories": [
{
"type": "path",
"url": "e:/sites/composer-packages/splx/helperurl"
}
],
"require": {
"splx/helperurl": "1.0"
}
}
composer.json подключение с GitHub:
{
"name": "splaa/testblog",
"minimum-stability": "dev",
"repositories": [
{
"type": "git",
"url": "git@github.com:SevenPowerX-PHP/helperurl.git"
}
],
"require": {
"splx/helperurl": "1.0"
}
}
example index.php
<?php
require_once 'vendor/autoload.php';
function Debug($obj){
echo '<pre>';
print_r($obj);
echo '</pre>';
}
?>
<!DOTYPE html>
<html lang='ru'>
<head>
<meta charset='utf-8'>
<title>Первая страница!</title>
</head>
<body>
<h1>Hello.</h1>
<?php
$url = new splx\helperurl\HelperURL;
Debug($url->getCurPageURL());
?>
</body>
</html>