Permalink
Browse files

入力内容を Google スプレッドシートに保存するカスタマイズ例

  • Loading branch information...
1 parent ea33bde commit 779ef090b1b939a449f41e8ab14dd2ed4ae38204 @dounokouno committed Nov 2, 2015
Showing with 207 additions and 362 deletions.
  1. +6 −0 composer.json
  2. +111 −0 composer.lock
  3. +9 −0 config/config.yml
  4. +2 −1 index.php
  5. +21 −361 input.html
  6. +58 −0 lib/exTransmitMail.php
View
@@ -0,0 +1,6 @@
+{
+ "require": {
+ "asimlqt/php-google-spreadsheet-client": "2.3.*",
+ "google/apiclient": "1.1.2"
+ }
+}
View
@@ -0,0 +1,111 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "This file is @generated automatically"
+ ],
+ "hash": "6b8683c76ddb4406f729f55e4f67a71f",
+ "packages": [
+ {
+ "name": "asimlqt/php-google-spreadsheet-client",
+ "version": "2.3.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/asimlqt/php-google-spreadsheet-client.git",
+ "reference": "9cb74ee0670e3928d6b40dd53164c3f09c65e309"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/asimlqt/php-google-spreadsheet-client/zipball/9cb74ee0670e3928d6b40dd53164c3f09c65e309",
+ "reference": "9cb74ee0670e3928d6b40dd53164c3f09c65e309",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "4.4.2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Google\\": "src/Google"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "authors": [
+ {
+ "name": "Asim Liaquat",
+ "email": "asimlqt22@gmail.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Martin Czygan",
+ "email": "martin.czygan@gmail.com",
+ "homepage": "http://twitter.com/cvvfj",
+ "role": "Packager"
+ }
+ ],
+ "description": "Google Spreadsheet PHP Client",
+ "homepage": "https://github.com/asimlqt/php-google-spreadsheet-client",
+ "keywords": [
+ "google",
+ "spreadsheet"
+ ],
+ "time": "2015-06-21 10:59:02"
+ },
+ {
+ "name": "google/apiclient",
+ "version": "1.1.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/google/google-api-php-client.git",
+ "reference": "9c35bbbbaf04a5236d763560dab1e2f6e672a724"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/google/google-api-php-client/zipball/9c35bbbbaf04a5236d763560dab1e2f6e672a724",
+ "reference": "9c35bbbbaf04a5236d763560dab1e2f6e672a724",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "3.7.*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "description": "Client library for Google APIs",
+ "homepage": "http://developers.google.com/api-client-library/php",
+ "keywords": [
+ "google"
+ ],
+ "time": "2014-11-25 14:35:03"
+ }
+ ],
+ "packages-dev": [],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": [],
+ "platform-dev": []
+}
View
@@ -0,0 +1,9 @@
+config:
+ to_email: info@example.com
+ to_subject: [株式会社テスト]お問い合わせ
+ auto_reply_subject: [株式会社テスト]お問い合わせありがとうございます
+ auto_reply_name: 株式会社テスト
+ google_client_id: {クライアント ID}
+ google_client_email: {メールアドレス}
+ google_client_key: {P12 ファイルのファイル名}
+ google_client_key_password: notasecret
View
@@ -9,5 +9,6 @@
*/
require_once 'lib/TransmitMail.php';
-$tm = new TransmitMail('config/config.yml');
+require_once 'lib/exTransmitMail.php';
+$tm = new exTransmitMail('config/config.yml');
$tm->run();
Oops, something went wrong.

0 comments on commit 779ef09

Please sign in to comment.