From bebe3af0d983eb35e5aecfd5f337c2185cf51dba Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Sat, 2 Sep 2017 19:27:26 -0300 Subject: [PATCH 01/17] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 744a62e..19a2095 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,12 @@ If you are wondering how to control the Arduino serial port via PHP, here is the solution. The **arduino://** wrapper is a easy and straightforward way to write and read data from Arduino. +## Install + +``` +composer require marabesi/arduino-php-wrapper +``` + ## Usage to write date on Arduino serial just use the regular I/O functions in PHP such as **fwrite** or **file_put_contents** From 7f0e99d8fd43e5d5aa38249124c456baec88dba2 Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Mon, 11 Sep 2017 16:39:49 -0300 Subject: [PATCH 02/17] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 19a2095..3e53b2b 100644 --- a/README.md +++ b/README.md @@ -71,4 +71,6 @@ while (true) { ## Improvements -As you can see is really simple and we can improve it much more as the sensors are identified +As you can see is really simple and we can improve it much more as the sensors are identified. + +- Prevent arduino from reload everytime a request is made by PHP From 296d3eb2ade1c6fa6c29b6ca18831d60a14fcae3 Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Mon, 1 Jan 2018 22:54:33 -0200 Subject: [PATCH 03/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e53b2b..29461f2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# arduino-php-wrapper +# arduino-php-wrapper (inspired by Johnny-Five JS) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3d57a79cbf3245e0af61e9123fda26eb)](https://www.codacy.com/app/matheus-marabesi/arduino-php-wrapper?utm_source=github.com&utm_medium=referral&utm_content=marabesi/arduino-php-wrapper&utm_campaign=badger) [![Build Status](https://travis-ci.org/marabesi/arduino-php-wrapper.svg?branch=master)](https://travis-ci.org/marabesi/arduino-php-wrapper) From 4b9b7f1b2dfcf337fd9a8f7f4363ff657593a6d1 Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Tue, 2 Jan 2018 16:05:53 -0200 Subject: [PATCH 04/17] Create LICENSE added license file --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a1aafe8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Matheus Marabesi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From c1cc2026ae83f6b44085922e21985a5a9521e1a3 Mon Sep 17 00:00:00 2001 From: marabesi Date: Wed, 17 Jan 2018 20:55:32 -0200 Subject: [PATCH 05/17] added script to install the lib via composer (make sure the installation through composer is ok) --- .travis.yml | 2 ++ install.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 install.sh diff --git a/.travis.yml b/.travis.yml index 1315880..0c0ddfb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,9 @@ php: before_script: - composer install + - chmod 777 install.sh script: - mkdir -p build/logs - ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml test/ + - sh install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..851217e --- /dev/null +++ b/install.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +composer require marabesi/arduino-php-wrapper \ No newline at end of file From 67d18ed737a43fdbcc723f37cd29697914cb96c5 Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Wed, 17 Jan 2018 20:59:49 -0200 Subject: [PATCH 06/17] Update install.sh forced version --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 851217e..4ab2f3e 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,3 @@ #!/bin/bash -composer require marabesi/arduino-php-wrapper \ No newline at end of file +composer require "marabesi/arduino-php-wrapper:1.0.0" From b1e4bf1bad0c734c955b88d587303f26b5c302fb Mon Sep 17 00:00:00 2001 From: marabesi Date: Wed, 17 Jan 2018 21:44:13 -0200 Subject: [PATCH 07/17] fixed install.sh --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4ab2f3e..e8b3459 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,4 @@ #!/bin/bash -composer require "marabesi/arduino-php-wrapper:1.0.0" +mkdir install +composer require -d=install/ marabesi/arduino-php-wrapper From 3424e53ad9e17dfa2318b4d54ed09b71612d5c9b Mon Sep 17 00:00:00 2001 From: Thiago Paes Date: Wed, 4 Apr 2018 14:45:11 -0300 Subject: [PATCH 08/17] Fix text --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29461f2..14a7aee 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ composer require marabesi/arduino-php-wrapper ## Usage -to write date on Arduino serial just use the regular I/O functions in PHP such as **fwrite** or **file_put_contents** +To read data from Arduino serial just use the regular I/O functions in PHP such as **fread** or **file_get_contents** ``` php \Arduino\Wrapper::register(); @@ -28,6 +28,7 @@ print fread($resource, 1024); ``` Or if you prefer, you can use **file_get_contents** and get the same result + ``` php print file_get_contents('arduino://ttyUSB0'); ``` @@ -58,6 +59,7 @@ You can use in your project in a OOP style $writer = new Arduino\Writer(new Arduino\Wrapper()); $bytes = $writer->out('ttyUSB0', 'from oop'); ``` + ### Reading data ``` php From ac59d4409932fe950043bfb1041b9ebeaa60d326 Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Sun, 22 Apr 2018 12:37:23 -0300 Subject: [PATCH 09/17] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 14a7aee..f02bb51 100644 --- a/README.md +++ b/README.md @@ -76,3 +76,13 @@ while (true) { As you can see is really simple and we can improve it much more as the sensors are identified. - Prevent arduino from reload everytime a request is made by PHP + +## Slides (talks based on this lib) + +[![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)](https://www.slideshare.net/marabesi/introduction-to-iot-and-php-nerdzao-day-1) Introduction to IoT and PHP - Nerdzão day #1 + +[![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)]( +https://www.slideshare.net/marabesi/iot-powered-by-php-and-streams-phpexperience2017) IoT powered by PHP and streams - PHPExperience2017 + +[![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)]( +https://www.slideshare.net/marabesi/controll-your-house-with-the-elephpant-phpconf2016) Controll your house with the elePHPant - PHPConf2016 From b034ba5f6f338b87a7ffe06a4f6c8dfe648644aa Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Sat, 26 May 2018 12:13:43 -0300 Subject: [PATCH 10/17] Update install.sh changed the compose require command to fix travis build --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e8b3459..c82cb81 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ #!/bin/bash mkdir install -composer require -d=install/ marabesi/arduino-php-wrapper +cd install && composer require marabesi/arduino-php-wrapper From 165a264cb51e8631f19073dacfbc5523ec30bcfe Mon Sep 17 00:00:00 2001 From: marabesi Date: Sat, 26 May 2018 12:24:50 -0300 Subject: [PATCH 11/17] fixed composer command to run without interaction --- .gitignore | 3 ++- install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 20a939e..84fdd0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ -.idea/ \ No newline at end of file +.idea/ +install/ \ No newline at end of file diff --git a/install.sh b/install.sh index c82cb81..70c9c6a 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ #!/bin/bash mkdir install -cd install && composer require marabesi/arduino-php-wrapper +cd install && composer require marabesi/arduino-php-wrapper --no-interaction -vvv From 4473492f6398a332961846768bc1fed18c939322 Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Tue, 31 Jul 2018 21:33:18 -0300 Subject: [PATCH 12/17] Update .travis.yml added php 7.1 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 0c0ddfb..a93c892 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ php: - 5.6 - hhvm - 7.0 + - 7.1 before_script: - composer install From 6f0b14b860fa24fd3c22ccd3d78d6686fdd6b2ee Mon Sep 17 00:00:00 2001 From: marabesi Date: Tue, 25 Sep 2018 19:33:51 +0200 Subject: [PATCH 13/17] added php 7.2 to the build --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a93c892..9164ae2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,13 @@ php: - hhvm - 7.0 - 7.1 + - 7.2 before_script: - composer install - chmod 777 install.sh script: - - mkdir -p build/logs + - mkdir -p build/logs - ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml test/ - sh install.sh From a93610320d0c27363524b8a8fec60c38429026fb Mon Sep 17 00:00:00 2001 From: marabesi Date: Mon, 15 Oct 2018 12:12:53 +0200 Subject: [PATCH 14/17] added windows to the build (travis ci) --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9164ae2..93b54dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,14 @@ language: php dist: trusty +os: + - linux + - windows + +matrix: + allow_failures: + - os: windows + php: - 5.5 - 5.6 From e1852fcbf05436de35ccddb59a309fb9b11c82d3 Mon Sep 17 00:00:00 2001 From: marabesi Date: Mon, 15 Oct 2018 12:31:37 +0200 Subject: [PATCH 15/17] added hyper link --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f02bb51..70d1341 100644 --- a/README.md +++ b/README.md @@ -79,10 +79,10 @@ As you can see is really simple and we can improve it much more as the sensors a ## Slides (talks based on this lib) -[![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)](https://www.slideshare.net/marabesi/introduction-to-iot-and-php-nerdzao-day-1) Introduction to IoT and PHP - Nerdzão day #1 +[![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)](https://www.slideshare.net/marabesi/introduction-to-iot-and-php-nerdzao-day-1) [Introduction to IoT and PHP - Nerdzão day #1](https://www.slideshare.net/marabesi/introduction-to-iot-and-php-nerdzao-day-1) [![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)]( -https://www.slideshare.net/marabesi/iot-powered-by-php-and-streams-phpexperience2017) IoT powered by PHP and streams - PHPExperience2017 +https://www.slideshare.net/marabesi/iot-powered-by-php-and-streams-phpexperience2017) [IoT powered by PHP and streams - PHPExperience2017](https://www.slideshare.net/marabesi/iot-powered-by-php-and-streams-phpexperience2017) [![SlideShare](https://img.shields.io/badge/slides-SlideShare-brightgreen.svg)]( -https://www.slideshare.net/marabesi/controll-your-house-with-the-elephpant-phpconf2016) Controll your house with the elePHPant - PHPConf2016 +https://www.slideshare.net/marabesi/controll-your-house-with-the-elephpant-phpconf2016) [Control your house with the elePHPant - PHPConf2016](https://www.slideshare.net/marabesi/controll-your-house-with-the-elephpant-phpconf2016) From 2b965f2d26dd0bd1cef4d4f12dcbc5ce55e0d6cc Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Thu, 1 Oct 2020 21:29:51 +0200 Subject: [PATCH 16/17] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 93b54dc..3179cc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ php: - 7.0 - 7.1 - 7.2 + - 7.4 before_script: - composer install From 6b0164266365a9001aa036aa6e36e5c6be9d8f5d Mon Sep 17 00:00:00 2001 From: Matheus Marabesi Date: Sun, 4 Oct 2020 12:34:39 +0200 Subject: [PATCH 17/17] drop hhvm from ci --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3179cc9..ae9f33a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ matrix: php: - 5.5 - 5.6 - - hhvm - 7.0 - 7.1 - 7.2 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy