jorisros/convert-string-to-domain
最新稳定版本:v1.0.0
Composer 安装命令:
composer require jorisros/convert-string-to-domain
包简介
README 文档
README
Because I needed a library to convert company names to subdomain compatible strings
Use the package
Add the library to your project
composer require jorisros/convert-string-to-domain
Use in your code as followed
<?php
require_once(__DIR__ . '/../vendor/autoload.php');
use JorisRos\ConvertStringToDomain\ConvertStringToDomain;
$companyName = "Company Name";
$subdomain = ConvertStringToDomain::convert($companyName);
// Gives back "companyname"
vardump($subdomain);
Checkout the project locally
git clone git@github.com:jorisros/StringToDomain.git string-to-domain && cd string-to-domain
Install the vendors
composer install
And run the tests
./vendor/bin/phpunit tests
Please commit your improvements
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-17