Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpush-api-php-client-3.5.0中引入JPush.php问题 #34

Closed
ghost opened this issue Aug 4, 2016 · 12 comments
Closed

jpush-api-php-client-3.5.0中引入JPush.php问题 #34

ghost opened this issue Aug 4, 2016 · 12 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 4, 2016

在这个版本的文档说明中,引用的是../src/JPush/JPush.php文件。想问一下,这个文件在哪里?还是说文档没有更新,已经换成Client.php,为什么examples没有更新?

@ghost ghost added the question label Aug 4, 2016
@ghost
Copy link

ghost commented Aug 4, 2016

在这个版本的文档说明中,引用的是../src/JPush/JPush.php文件

我不明白你这句话的意思。

Example 的话,暂时还没有空去更新,如果你看 README 哪里有看不懂的,请开 issue 讨论

@ghost
Copy link
Author

ghost commented Aug 4, 2016

是官方的PHP版文档说明。引用的文件还是我刚说才的那个。我换成了Client.php是可以的,但报了一个”Fatal error: Class 'JPush\Config' not found in D:\wwwroot\system\plugin\JPush\Client.php on line 15“的错误。不明白为什么会这样

@ghost
Copy link

ghost commented Aug 4, 2016

试这样的,官方文档的更新可能会有些许延迟,我会跟相关人员反映的。你可以按照 Github 上 README 来做。

PS:尝试使用一下 Composer 吧

@ghost
Copy link
Author

ghost commented Aug 4, 2016

除此(Composer)没有别的办法了么?

@ghost
Copy link

ghost commented Aug 4, 2016

@ZhouAndy 请看 README ,那只是 PS 而已啊,不过墙猎推荐,不

@ghost
Copy link
Author

ghost commented Aug 4, 2016

看完了,对我没有什么实质性的帮助啊。和Github项目下面的一段没什么差别啊。不懂SDK的目录结构都未改变,为何会找不到这个文件。

@ghost
Copy link

ghost commented Aug 4, 2016

@ZhouAndy 你要是用 Composer 就不会出现这个问题了 😄

另一种解决办法是你下载 Github 上的源代码,再试一次就行了,github 上的代码比官网多了一个文件。至于为何找不到这个文件,那是因为没有加载到执行路径中,因为是用 Composer 来加载的。

@ghost
Copy link
Author

ghost commented Aug 4, 2016

..这是强行安利Composer的节奏。。。我想说,我本身拿得文件就是从GitHub上下的。然后把src/JPush目录放到了我的plugin目录下面去了

@ghost
Copy link

ghost commented Aug 4, 2016

我觉得 PHP 不用 Compsoer 就是耍流氓 🐤 你这样那肯定不行,话说你到底有没有看过README

https://github.com/jpush/jpush-api-php-client#直接下载源码安装

Compsoer 可以成吨的提高你的配置效率

@ghost
Copy link
Author

ghost commented Aug 4, 2016

我是Python开发者,偶尔用下PHP。只为解决一个问题,弄一大堆东西,肯定是超出我预期的。我知道你有情怀。但我的条件不允许我弄得那么正式。

@ghost
Copy link

ghost commented Aug 4, 2016

这么巧,我 Ruby, 我的意思是用 Composer 可以解决这些配置上的问题,少踩很多坑,正因为你写 Python 可以用 pip 管理第三方包和依赖,而对应到 PHP 那就是 Compsoer 了。当然了,你不用,我也提供了相应的方式。

@ghost
Copy link

ghost commented Aug 4, 2016

@ZhouAndy 大兄弟,问题搞定了吗

@ghost ghost closed this as completed Aug 4, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants