Package Data | |
---|---|
Maintainer Username: | seffeng |
Maintainer Contact: | save.zxf@gmail.com (seffeng) |
Package Create Date: | 2022-08-25 |
Package Last Update: | 2022-08-25 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:15:14 |
Package Statistics | |
---|---|
Total Downloads: | 1,378 |
Monthly Downloads: | 21 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
# 安装
$ composer require seffeng/xml-helper
|---src
| | Xml.php
|---tests
| XmlTest.php
/**
* TestController.php
* 示例
*/
namespace App\Http\Controllers;
use Seffeng\XmlHelper\Xml;
class TestController extends Controller
{
public function index()
{
$value = ['a' => ['id' => 1,'name' => 'aaa']];
var_dump(Xml::toXml($value));
}
}
1、更多示例请参考 tests 目录下测试文件。