Comments (4)
@SobanMahmood can you look into writing PHP script equivalents of the interactive shell we've got going on in the README.md?
from php.
Yeah I think the README.md has faulty instructions because the PHP shell won't allow this kind of importing the way you've done it. I guess the README.md is more for 'display' and less for actually executing it. But we should find an alternative method, like maybe a quick PHP script that does the same thing.
from php.
I also found that it uses the psysh
to complete the Quick Start
section, not using the php -a
command.
If using the php -a
command, it should let all commands run in the single line with semicolon to be separated rather than separated commands.
Some examples are as follows:
peterli@peterli-Virtual-Machine:~$ php -v
PHP 8.1.4 (cli) (built: Apr 4 2022 13:30:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.4, Copyright (c) Zend Technologies
with Zend OPcache v8.1.4, Copyright (c), by Zend Technologies
peterli@peterli-Virtual-Machine:~$ php -a
Interactive shell
php > require_once __DIR__ . '/vendor/autoload.php';
php > use ipinfo\ipinfo\IPinfo;
php > $client = new IPinfo('123456789abc');
PHP Warning: Uncaught Error: Class "IPinfo" not found in php shell code:1
Stack trace:
#0 {main}
thrown in php shell code on line 1
php > require_once __DIR__ . '/vendor/autoload.php';use ipinfo\ipinfo\IPinfo;$client = new IPinfo('123456789abc');
php >
from php.
Hmm I see, but just for displaying it to be honest we can just give basic PHP code snippets, instead of some custom shell or whatever which most people won't use or download.
from php.
Related Issues (20)
- Token Referrer restriction with PHP Lib HOT 2
- Implement Stringable interface
- More info on why response object can be null when calling IPinfo::getDetails() HOT 12
- Hopper
- Retrieving your public IPv6 address
- The php api does not work on the server but it does on the localhost HOT 1
- Make it possible to use sabre/cache version 2 HOT 4
- Just a detail (php8.2): Creation of dynamic property ipinfo\ipinfo\IPinfo::$settings is deprecated HOT 1
- Error with cache key HOT 1
- Inline all data files HOT 1
- Retrieving an IPV6 throw an exception HOT 1
- Can I use downloaded Geolocation API database to initialize this client? HOT 1
- Does not work with PHP 8.2+ HOT 1
- Hi
- 1
- FONT FAMILIES. GUESS IT WAS FORFIÉTURE HOT 1
- `
- {
- https://www.alonsodomin.me/cron4s/userguide/index.html#parsing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php.