Initial import
authorAntonio Ospite <ao2@ao2.it>
Fri, 4 Nov 2016 15:08:07 +0000 (16:08 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 7 Nov 2016 14:12:02 +0000 (15:12 +0100)
README [new file with mode: 0644]
composer.json [new file with mode: 0644]
tweeper_test [new file with mode: 0755]

diff --git a/README b/README
new file mode 100644 (file)
index 0000000..f39a29f
--- /dev/null
+++ b/README
@@ -0,0 +1,18 @@
+Tweeper is a web scraper to convert popular social media sites to RSS (e.g.
+Twitter.com, Instagram.com), see
+
+For the source code and more details see:
+
+  https://git.ao2.it/tweeper.git
+
+
+This project shows an example of using tweeper via composer:
+
+  $ composer install
+  $ ./tweeper_test
+
+After "composer install" a more complete example app is also available in the
+"vendor/bin" directory:
+
+  $ ./vendor/bin/tweeper https://twitter.com/ao2it
+  $ ./vendor/bin/tweeper https://www.instagram.com/comunedinapoli/
diff --git a/composer.json b/composer.json
new file mode 100644 (file)
index 0000000..1581b91
--- /dev/null
@@ -0,0 +1,7 @@
+{
+    "name": "ao2/tweeper_composer_test",
+    "require": {
+        "ao2/tweeper": "dev-master"
+    },
+    "bin": ["tweeper_test"]
+}
diff --git a/tweeper_test b/tweeper_test
new file mode 100755 (executable)
index 0000000..422ba16
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env php
+<?php
+
+require __DIR__ . '/vendor/autoload.php';
+
+use Tweeper\Tweeper;
+
+$tweeper = new Tweeper();
+$output = $tweeper->tweep('https://twitter.com/ao2it');
+if (is_null($output)) {
+  exit(1);
+}
+
+$output = $tweeper->tweep('https://www.instagram.com/comunedinapoli/');
+if (is_null($output)) {
+  exit(1);
+}