Skip to content

Commit

Permalink
up: rename package name to easytpl
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 6, 2021
1 parent 8567547 commit 7929e81
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# FastTpl
# EasyTpl

[![License](https://img.shields.io/packagist/l/phppkg/fasttpl.svg?style=flat-square)](LICENSE)
[![Php Version](https://img.shields.io/badge/php-%3E=7.4.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/phppkg/fasttpl)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/phppkg/fasttpl)](https://github.com/phppkg/fasttpl)
[![Actions Status](https://github.com/phppkg/fasttpl/workflows/Unit-Tests/badge.svg)](https://github.com/phppkg/fasttpl/actions)
[![License](https://img.shields.io/packagist/l/phppkg/easytpl.svg?style=flat-square)](LICENSE)
[![Php Version](https://img.shields.io/badge/php-%3E=7.4.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/phppkg/easytpl)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/phppkg/easytpl)](https://github.com/phppkg/easytpl)
[![Actions Status](https://github.com/phppkg/easytpl/workflows/Unit-Tests/badge.svg)](https://github.com/phppkg/easytpl/actions)

⚡️ Simple and fastly text template engine for PHP

Expand All @@ -12,13 +12,13 @@
**composer**

```bash
composer require phppkg/fasttpl
composer require phppkg/easytpl
```

## Usage

```php
use PhpPkg\FastTpl\FastTemplate;
use PhpPkg\EasyTpl\FastTemplate;

$t = new FastTemplate();
$t->parse();
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "phppkg/fasttpl",
"name": "phppkg/easytpl",
"description": "⚡️ Simple and fast template engine for PHP",
"type": "template",
"license": "MIT",
"homepage": "https://github.com/phppkg/fasttpl",
"homepage": "https://github.com/phppkg/easytpl",
"authors": [
{
"name": "inhere",
Expand All @@ -17,12 +17,12 @@
},
"autoload": {
"psr-4": {
"PhpPkg\\FastTpl\\": "src/"
"PhpPkg\\EasyTpl\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PhpPkg\\FastTplTest\\": "test/"
"PhpPkg\\EasyTplTest\\": "test/"
}
},
"bin": [
Expand Down
2 changes: 1 addition & 1 deletion test/BaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace PhpPkg\FastTplTest;
namespace PhpPkg\EasyTplTest;

use PHPUnit\Framework\TestCase;
use ReflectionException;
Expand Down
4 changes: 2 additions & 2 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

$libDir = dirname(__DIR__);
$npMap = [
'PhpPkg\\FastTplTest\\' => $libDir . '/test/',
'PhpPkg\\FastTpl\\' => $libDir . '/src/',
'PhpPkg\\EasyTplTest\\' => $libDir . '/test/',
'PhpPkg\\EasyTpl\\' => $libDir . '/src/',
];

spl_autoload_register(static function ($class) use ($npMap) {
Expand Down

0 comments on commit 7929e81

Please sign in to comment.