Skip to content

Commit 5b953f8

Browse files
authored
Update README.md
1 parent d2b7862 commit 5b953f8

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

README.md

+70-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,70 @@
1-
# Moe-counter-PHP
2-
萌萌的网页访客计数器 PHP版
1+
# PHP版网页访客计数器
2+
3+
### 关于
4+
5+
这是一个参考项目 **[Moe-counter](https://github.com/journey-ad/Moe-counter)** 而开发的**PHP版本**的访客计数器。部分代码来源于网络。
6+
7+
###### 查看演示:[Demo](http://count.kjchmc.cn/)
8+
9+
### 可选形象
10+
11+
当前版本形象图片均来自项目 **[Moe-counter](https://github.com/journey-ad/Moe-counter)** 。后期条件允许的话会考虑自行创作新形象。
12+
13+
<details>
14+
15+
<summary>全部主题</summary>
16+
17+
---
18+
19+
#### asoul
20+
21+
![asoul.png](https://cdn.jsdelivr.net/gh/1834423612/Moe-counter-PHP@master/screenshots/asoul.png)
22+
23+
#### gelbooru
24+
25+
![gelbooru.png](https://cdn.jsdelivr.net/gh/1834423612/Moe-counter-PHP@master/screenshots/gelbooru.png)
26+
27+
#### moebooru
28+
29+
![moebooru.png](https://cdn.jsdelivr.net/gh/1834423612/Moe-counter-PHP@master/screenshots/moebooru.png)
30+
31+
#### rule34
32+
33+
![rule34.png](https://cdn.jsdelivr.net/gh/1834423612/Moe-counter-PHP@master/screenshots/rule34.png)
34+
35+
#### gelbooru-h
36+
37+
请自行前往`\theme\gelbooru-h`查看
38+
39+
#### moebooru-h
40+
41+
请自行前往`\theme\moebooru-h`查看
42+
43+
</details>
44+
45+
---
46+
47+
48+
49+
## 为什么开发PHP版?
50+
51+
看到了原作者 **[jad](https://github.com/journey-ad/)** 的项目以及`README`中的Demo尝试使用,但经过不同设备的测试发现 长时间之后重新访问会自动重置。奈何自行部署操作配置过于繁琐,对我这种喜欢“偷懒”的人非常不友好,于是便尝试重写为PHP版本。
52+
53+
## 如何使用?
54+
55+
由于初代版本的局限性,您需要将本组件使用在`.php`后缀的网页里嵌入代码:
56+
57+
```
58+
<?php include('index.php');?>
59+
```
60+
61+
## 已知问题
62+
63+
访问`index.php`时会输出多张图片导致无法通过`<img src="index.php" />`的形式调用。
64+
65+
## 计划更新
66+
67+
* - [ ] 调用时可直接自定义主题`?theme=xxx`
68+
* - [ ] 合并多个图片为一个
69+
70+
由于本人目前还在上初中,初学php语言,故开发进度可能较慢,代码写的有些烂,请见谅。如果有会php的大佬,欢迎push分支,或提交issue。

0 commit comments

Comments
 (0)