diff --git a/.gitignore b/.gitignore index 83a6980..4572043 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ composer.phar vendor/ *.zip - -# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -# composer.lock +composer.lock \ No newline at end of file diff --git a/composer.json b/composer.json index f227a8c..756546a 100644 --- a/composer.json +++ b/composer.json @@ -2,8 +2,8 @@ "name" : "pdffiller/pdffiller-php-api-client", "description": "PHP client for pdffiller.com REST API", "require": { - "league/oauth2-client": "^1.0", - "symfony/translation": "^3.0" + "league/oauth2-client": "^1.0 || ^2.0", + "symfony/translation": "^4.0" }, "require-dev": { "adammbalogh/key-value-store-file": "^0.5.3", diff --git a/composer.lock b/composer.lock deleted file mode 100644 index ba388ed..0000000 --- a/composer.lock +++ /dev/null @@ -1,872 +0,0 @@ -{ - "_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": "b32a69ec1f924776c7b6012afb6b03f7", - "content-hash": "ab8daf79362de1141b586334faa79aab", - "packages": [ - { - "name": "guzzlehttp/guzzle", - "version": "6.1.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "66fd14b4d0b8f2389eaf37c5458608c7cb793a81" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/66fd14b4d0b8f2389eaf37c5458608c7cb793a81", - "reference": "66fd14b4d0b8f2389eaf37c5458608c7cb793a81", - "shasum": "" - }, - "require": { - "guzzlehttp/promises": "~1.0", - "guzzlehttp/psr7": "~1.1", - "php": ">=5.5.0" - }, - "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "~4.0", - "psr/log": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "6.1-dev" - } - }, - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle is a PHP HTTP client library", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "rest", - "web service" - ], - "time": "2015-09-08 17:36:26" - }, - { - "name": "guzzlehttp/promises", - "version": "1.0.3", - "source": { - "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "b1e1c0d55f8083c71eda2c28c12a228d708294ea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/b1e1c0d55f8083c71eda2c28c12a228d708294ea", - "reference": "b1e1c0d55f8083c71eda2c28c12a228d708294ea", - "shasum": "" - }, - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle promises library", - "keywords": [ - "promise" - ], - "time": "2015-10-15 22:28:00" - }, - { - "name": "guzzlehttp/psr7", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "4ef919b0cf3b1989523138b60163bbcb7ba1ff7e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/4ef919b0cf3b1989523138b60163bbcb7ba1ff7e", - "reference": "4ef919b0cf3b1989523138b60163bbcb7ba1ff7e", - "shasum": "" - }, - "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0" - }, - "provide": { - "psr/http-message-implementation": "1.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "PSR-7 message implementation", - "keywords": [ - "http", - "message", - "stream", - "uri" - ], - "time": "2015-08-15 19:32:36" - }, - { - "name": "ircmaxell/random-lib", - "version": "v1.1.0", - "source": { - "type": "git", - "url": "https://github.com/ircmaxell/RandomLib.git", - "reference": "13efa4368bb2ac88bb3b1459b487d907de4dbf7c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ircmaxell/RandomLib/zipball/13efa4368bb2ac88bb3b1459b487d907de4dbf7c", - "reference": "13efa4368bb2ac88bb3b1459b487d907de4dbf7c", - "shasum": "" - }, - "require": { - "ircmaxell/security-lib": "1.0.*@dev", - "php": ">=5.3.2" - }, - "require-dev": { - "mikey179/vfsstream": "1.1.*", - "phpunit/phpunit": "3.7.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "RandomLib": "lib" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Anthony Ferrara", - "email": "ircmaxell@ircmaxell.com", - "homepage": "http://blog.ircmaxell.com" - } - ], - "description": "A Library For Generating Secure Random Numbers", - "homepage": "https://github.com/ircmaxell/RandomLib", - "keywords": [ - "cryptography", - "random", - "random-numbers", - "random-strings" - ], - "time": "2015-01-15 16:31:45" - }, - { - "name": "ircmaxell/security-lib", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/ircmaxell/SecurityLib.git", - "reference": "80934de3c482dcafb46b5756e59ebece082b6dc7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ircmaxell/SecurityLib/zipball/80934de3c482dcafb46b5756e59ebece082b6dc7", - "reference": "80934de3c482dcafb46b5756e59ebece082b6dc7", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "mikey179/vfsstream": "1.1.*" - }, - "type": "library", - "autoload": { - "psr-0": { - "SecurityLib": "lib" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Anthony Ferrara", - "email": "ircmaxell@ircmaxell.com", - "homepage": "http://blog.ircmaxell.com" - } - ], - "description": "A Base Security Library", - "homepage": "https://github.com/ircmaxell/PHP-SecurityLib", - "time": "2013-04-30 18:00:34" - }, - { - "name": "league/oauth2-client", - "version": "1.0.2", - "source": { - "type": "git", - "url": "https://github.com/thephpleague/oauth2-client.git", - "reference": "32d94d0ffc846b7f0fd9a115a7b0795a47a2d11c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/32d94d0ffc846b7f0fd9a115a7b0795a47a2d11c", - "reference": "32d94d0ffc846b7f0fd9a115a7b0795a47a2d11c", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "guzzlehttp/guzzle": "~6.0", - "ircmaxell/random-lib": "~1.1", - "php": ">=5.5.0" - }, - "require-dev": { - "jakub-onderka/php-parallel-lint": "0.8.*", - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~4.0", - "satooshi/php-coveralls": "0.6.*", - "squizlabs/php_codesniffer": "~2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "League\\OAuth2\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Alex Bilbie", - "email": "hello@alexbilbie.com", - "homepage": "http://www.alexbilbie.com", - "role": "Developer" - } - ], - "description": "OAuth 2.0 Client Library", - "keywords": [ - "Authentication", - "SSO", - "authorization", - "identity", - "idp", - "oauth", - "oauth2", - "single sign on" - ], - "time": "2015-09-22 18:26:19" - }, - { - "name": "psr/http-message", - "version": "1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", - "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "time": "2015-05-04 20:22:00" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.1.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "1289d16209491b584839022f29257ad859b8532d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", - "reference": "1289d16209491b584839022f29257ad859b8532d", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "time": "2016-01-20 09:13:37" - }, - { - "name": "symfony/translation", - "version": "v3.0.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "2de0b6f7ebe43cffd8a06996ebec6aab79ea9e91" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/2de0b6f7ebe43cffd8a06996ebec6aab79ea9e91", - "reference": "2de0b6f7ebe43cffd8a06996ebec6aab79ea9e91", - "shasum": "" - }, - "require": { - "php": ">=5.5.9", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/config": "<2.8" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0", - "symfony/intl": "~2.8|~3.0", - "symfony/yaml": "~2.8|~3.0" - }, - "suggest": { - "psr/log": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Translation Component", - "homepage": "https://symfony.com", - "time": "2016-02-02 13:44:19" - } - ], - "packages-dev": [ - { - "name": "adammbalogh/key-value-store", - "version": "0.5.2", - "source": { - "type": "git", - "url": "https://github.com/adammbalogh/key-value-store.git", - "reference": "92f1f5b051c5809a87a3cee62c7627043f101efd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/adammbalogh/key-value-store/zipball/92f1f5b051c5809a87a3cee62c7627043f101efd", - "reference": "92f1f5b051c5809a87a3cee62c7627043f101efd", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "mockery/mockery": "~0.9.2", - "phpmd/phpmd": "~2.1", - "phpunit/phpunit": "~4.2.5", - "satooshi/php-coveralls": "dev-master", - "squizlabs/php_codesniffer": "~1.5" - }, - "suggest": { - "adammbalogh/key-value-store-file": "For using File storage", - "adammbalogh/key-value-store-memcached": "For using Memcached storage", - "adammbalogh/key-value-store-memory": "For using Memory storage", - "adammbalogh/key-value-store-null": "For using Null storage", - "adammbalogh/key-value-store-redis": "For using Redis storage", - "adammbalogh/key-value-store-replicator": "For using Replicator adapter", - "adammbalogh/key-value-store-shared-memory": "For using Shared Memory storage" - }, - "type": "library", - "autoload": { - "psr-4": { - "AdammBalogh\\KeyValueStore\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Adam Balogh", - "email": "baloghbh@gmail.com", - "homepage": "http://code-chronicle.blogspot.com", - "role": "Developer" - } - ], - "description": "Key-value store generic package. It contains abstractions.", - "keywords": [ - "key", - "key-value", - "nosql", - "store", - "value" - ], - "time": "2014-10-22 15:44:11" - }, - { - "name": "adammbalogh/key-value-store-file", - "version": "0.5.3", - "source": { - "type": "git", - "url": "https://github.com/adammbalogh/key-value-store-file.git", - "reference": "f9a3f6d1ac3470451ff59f09b2c739752b5354b0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/adammbalogh/key-value-store-file/zipball/f9a3f6d1ac3470451ff59f09b2c739752b5354b0", - "reference": "f9a3f6d1ac3470451ff59f09b2c739752b5354b0", - "shasum": "" - }, - "require": { - "adammbalogh/key-value-store": "~0.5.1", - "fire015/flintstone": "~1.6.0", - "php": ">=5.4.0" - }, - "require-dev": { - "mikey179/vfsstream": "~1.4", - "phpunit/phpunit": "~4.2.5", - "satooshi/php-coveralls": "dev-master", - "squizlabs/php_codesniffer": "~1.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "AdammBalogh\\KeyValueStore\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Adam Balogh", - "email": "baloghbh@gmail.com", - "homepage": "http://code-chronicle.blogspot.com", - "role": "Developer" - } - ], - "description": "Key-value file store through fire015/flintstone package.", - "keywords": [ - "file", - "flintstone", - "key", - "key-value", - "key-value-file", - "nosql", - "store", - "value" - ], - "time": "2014-10-20 17:36:08" - }, - { - "name": "fire015/flintstone", - "version": "v1.6.0", - "source": { - "type": "git", - "url": "https://github.com/fire015/flintstone.git", - "reference": "3b4add7f143c1cededd6347d7dcf5519f2354e0a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/fire015/flintstone/zipball/3b4add7f143c1cededd6347d7dcf5519f2354e0a", - "reference": "3b4add7f143c1cededd6347d7dcf5519f2354e0a", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Flintstone": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jason M", - "email": "emailfire@gmail.com" - } - ], - "description": "A key/value database store using flat files for PHP", - "homepage": "http://www.xeweb.net/flintstone/", - "keywords": [ - "cache", - "database", - "files", - "flintstone", - "memory" - ], - "time": "2014-09-30 08:31:08" - }, - { - "name": "larapack/dd", - "version": "1.0", - "source": { - "type": "git", - "url": "https://github.com/larapack/dd.git", - "reference": "564da1a427b5559b5286138e180d80ed26558e85" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/larapack/dd/zipball/564da1a427b5559b5286138e180d80ed26558e85", - "reference": "564da1a427b5559b5286138e180d80ed26558e85", - "shasum": "" - }, - "require": { - "symfony/var-dumper": "*" - }, - "type": "package", - "autoload": { - "files": [ - "src/helper.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mark Topper", - "email": "hi@webman.io" - } - ], - "description": "`dd` is a helper method in Laravel. This package will add the `dd` to your application.", - "time": "2015-06-10 11:33:45" - }, - { - "name": "nesbot/carbon", - "version": "1.21.0", - "source": { - "type": "git", - "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "7b08ec6f75791e130012f206e3f7b0e76e18e3d7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7b08ec6f75791e130012f206e3f7b0e76e18e3d7", - "reference": "7b08ec6f75791e130012f206e3f7b0e76e18e3d7", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "symfony/translation": "~2.6|~3.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0|~5.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Carbon\\": "src/Carbon/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Brian Nesbitt", - "email": "brian@nesbot.com", - "homepage": "http://nesbot.com" - } - ], - "description": "A simple API extension for DateTime.", - "homepage": "http://carbon.nesbot.com", - "keywords": [ - "date", - "datetime", - "time" - ], - "time": "2015-11-04 20:07:17" - }, - { - "name": "symfony/var-dumper", - "version": "v2.7.6", - "source": { - "type": "git", - "url": "https://github.com/symfony/var-dumper.git", - "reference": "eb033050050916b6bfa51be71009ef67b16046c9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/eb033050050916b6bfa51be71009ef67b16046c9", - "reference": "eb033050050916b6bfa51be71009ef67b16046c9", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "suggest": { - "ext-symfony_debug": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "files": [ - "Resources/functions/dump.php" - ], - "psr-4": { - "Symfony\\Component\\VarDumper\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony mechanism for exploring and dumping PHP variables", - "homepage": "https://symfony.com", - "keywords": [ - "debug", - "dump" - ], - "time": "2015-10-25 17:17:38" - }, - { - "name": "vlucas/phpdotenv", - "version": "v2.1.0", - "source": { - "type": "git", - "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "c10040e0df17d2ee88e9212b50cbe9319e878f59" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/c10040e0df17d2ee88e9212b50cbe9319e878f59", - "reference": "c10040e0df17d2ee88e9212b50cbe9319e878f59", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" - } - }, - "autoload": { - "psr-4": { - "Dotenv\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD" - ], - "authors": [ - { - "name": "Vance Lucas", - "email": "vance@vancelucas.com", - "homepage": "http://www.vancelucas.com" - } - ], - "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", - "homepage": "http://github.com/vlucas/phpdotenv", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "time": "2015-10-28 18:53:35" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], - "platform-dev": [] -} diff --git a/examples/fillable_template/1_get_dictionary.php b/examples/fillable_template/1_get_dictionary.php index 32388eb..df6d7e2 100644 --- a/examples/fillable_template/1_get_dictionary.php +++ b/examples/fillable_template/1_get_dictionary.php @@ -2,6 +2,6 @@ use PDFfiller\OAuth2\Client\Provider\FillableTemplate; $provider = require_once __DIR__ . '/../bootstrap/initWithFabric.php'; -$e = FillableTemplate::dictionary($provider, 53690143); +$e = FillableTemplate::dictionary($provider, 67158068); dd($e->toArray()); diff --git a/examples/fillable_template/2_make_fillable_template.php b/examples/fillable_template/2_make_fillable_template.php index 3dce01f..fb6199f 100644 --- a/examples/fillable_template/2_make_fillable_template.php +++ b/examples/fillable_template/2_make_fillable_template.php @@ -4,7 +4,7 @@ $provider = require_once __DIR__ . '/../bootstrap/initWithFabric.php'; $fillableTemplate = new FillableTemplate($provider); -$fillableTemplate->document_id = 53690143; +$fillableTemplate->document_id = 67158068; $fillableTemplate->fillable_fields['Text_1'] = 'Hop hey lalaley'; $fillableTemplate->fillable_fields['Number_1'] = '2016'; $fillableTemplate->fillable_fields['Checkbox_1'] = '1'; diff --git a/src/FillableField.php b/src/FillableField.php index 55c9e54..1ada73d 100644 --- a/src/FillableField.php +++ b/src/FillableField.php @@ -13,6 +13,10 @@ * @property string $format * @property mixed $initial * @property boolean $required + * @property string $maxChars + * @property string $maxLines + * @property array $list + * @property bool $allowCustomText */ class FillableField extends Object { @@ -22,5 +26,9 @@ class FillableField extends Object 'format', 'initial', 'required', + 'maxChars', + 'maxLines', + 'list', + 'allowCustomText' ]; } \ No newline at end of file diff --git a/src/FillableTemplate.php b/src/FillableTemplate.php index b5ca280..9d72e66 100644 --- a/src/FillableTemplate.php +++ b/src/FillableTemplate.php @@ -110,19 +110,4 @@ public function getFillableFields() return $this->fillable_fields; } - - /** - * Returns array representation of an object - * - * @param array $options - * @return array - */ - public function toArray($options = []) - { - $options = array_merge_recursive($options, [ - 'except' => ['document_id'] - ]); - - return parent::toArray($options); - } }