tasoftch / php-i2c-extension Goto Github PK
View Code? Open in Web Editor NEWA Zend Extension for php to grant access to an existing i2c bus on a linux device (Raspberry Pi and for example the ADS1x15)
A Zend Extension for php to grant access to an existing i2c bus on a linux device (Raspberry Pi and for example the ADS1x15)
Hello,
Pi 3B+, new install of PHP.
Following the install, when I try to run phpize, it get:
bash: phpize: command not found
And ./configure isn't a file listed.
Any suggestions?
Thanks for your great Library!
Unfortunately I run into some trouble while trying to install the library,
when I enter the command "./configure --enable-i2c-php" a long list of checks and stuff appears but it also writes
configure: WARNING: unrecognized options: --enable-i2c-php
What causes this problem, what could I do?
Using PHP 7.1 and Raspbian 10 (also tried with PHP7.3)
Edit: it works on PHP 7.3 even with that warning
I installed this software normally and set php.ini. In addition, I have given permissions on /dev/i2c-0.
However, i2c_open("/dev/i2c-0") returns false. Please tell me what you can think of.
If you change i2c.c as follows, it will succeed.
// int fd = open(devPath, O_RDWR);
int fd = open("/dev/i2c-0", O_RDWR);
Hello, I am able to get the extension installed and use it to communicate with a DAC module, however, it only works when using the VS Code built-in web server (Debian 10). When I try to use it with Apache, the device fails to load: "Uncaught Error: Call to undefined function i2c_open()..." I noticed that the debugging process is runnint as root whereas the Apache server is running as www-data. I tried changing the owner of /dev/i2c_1 to www-data:www-/*data, but still no joy.
Also, I am not able to install the PHP library with composer. It fails with: "Failed opening required 'tasoft/php-i2c-extension' (include_path='.:/usr/share/php')
I'm not sure how /usr/share/php is involved with this...
Hi
When I run make I get a lot of errors and it will not build.
Should this work on php 8.1?
And yes I did install php8.1-dev
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.