mouf/utils.common.url-interface
最新稳定版本:v1.0.0
Composer 安装命令:
composer require mouf/utils.common.url-interface
包简介
This package contains an interface used by many objects to say they represent a URL. The concept is very simple, the object implements a getUrl method, and that's it!
README 文档
README
This package contains an interface used by many objects to declare they represent a single URL.
If your objects represent an URL (for instance your object is a link, they should implement UrlInterface. An object implementing this interface will return a single URL, as a string when the "getUrl()" method is called.
This is a very simple and useful system for classes representing links, pages, etc...
namespace Mouf\Utils; interface UrlInterface { /** * Returns the URL represented by this object, as a string. * * @return string */ public function getUrl(); }
This package comes with a simple Url class that implements this interface.
Mouf package
This package is part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.
统计信息
- 总下载量: 357.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-05-22