Skip to content

Commit

Permalink
Update READMEs (#575)
Browse files Browse the repository at this point in the history
* Update READMEs

* Update FONDING.yml

---------

Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia authored Feb 27, 2024
1 parent 252c3c1 commit ede62f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: huangdijia
custom: ['https://hdj.me/images/alipay-min.jpg', 'https://hdj.me/images/wechat-pay-min.jpg']
custom: https://hdj.me/sponsors/
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ The Powerful REPL for Hyperf.

## Installation

```bash
```shell
composer require friendsofhyperf/tinker
```

## Publish Config

```bash
```shell
php bin/hyperf.php vendor:publish friendsofhyperf/tinker
```

## Usage

```bash
```shell
php bin/hyperf.php tinker
```

## Commnads

* run command

````bash
````shell
Psy Shell v0.10.4 (PHP 7.3.11 — cli)
>>> $a=1
=> 1
Expand All @@ -43,7 +43,7 @@ Psy Shell v0.10.4 (PHP 7.3.11 — cli)

* The help command

```bash
```shell
>>> help
help Show a list of commands. Type `help [foo]` for information about [foo]. Aliases: ?
ls List local, instance or class variables, methods and constants. Aliases: dir
Expand Down Expand Up @@ -72,7 +72,7 @@ Psy Shell v0.10.4 (PHP 7.3.11 — cli)

* get hyperf env

```bash
```shell
Psy Shell v0.10.4 (PHP 7.2.34 — cli)
>>> env("APP_NAME")
=> "skeleton"
Expand All @@ -81,7 +81,7 @@ Psy Shell v0.10.4 (PHP 7.2.34 — cli)

* query db

```bash
```shell
➜ t.hyperf.com git:(master) ✗ php bin/hyperf.php tinker
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Paginator\Listener\PageResolverListener listener.
Expand Down Expand Up @@ -151,7 +151,7 @@ object(App\Model\User)#81816 (28) {

* show doc

```bash
```shell
>>> doc md5
function md5($str, $raw_output = unknown)

Expand All @@ -163,7 +163,7 @@ PHP manual not found

* show class

```bash
```shell
>>> show App\Model\User
7: /**
8: */
Expand Down Expand Up @@ -192,10 +192,6 @@ PHP manual not found
>>>
```
## Donate
> If you like them, Buy me a cup of coffee. [Alipay](https://hdj.me/images/alipay-min.jpg) | [WeChat](https://hdj.me/images/wechat-pay-min.jpg)
## Contact
- [Twitter](https://twitter.com/huangdijia)
Expand Down

0 comments on commit ede62f2

Please sign in to comment.