mindgrub / mtip
PHP 库,用于提交 MTIP 应用程序。
dev-master
2019-01-09 22:23 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ^6.3
- sunra/php-simple-html-dom-parser: ^1.5
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is auto-updated.
Last update: 2024-09-10 11:04:12 UTC
README
此库允许字段数据和 MTIP 应用的提交,最初在 https://careers2.umbc.edu/employers/mtip_app_response.php 找到。
用法
// Create a new application. $application = \Mindgrub\MTIP\MTIPApplication(); // Examine fields on the application. $available_fields = $application->getFieldData(); // Set fields on the application. $application->setField('first_name', $my_first_name); // Submit the application. $application->submit();
提交响应
$application->submit()
返回一个包含 3 个键的数组
status
,根据成功与否为0
或1
。message
,描述提交结果。response
,在提交后收到的 Guzzle 响应对象,如果适用。