Skip to content

Commit

Permalink
add composer
Browse files Browse the repository at this point in the history
  • Loading branch information
fukuball committed Dec 18, 2013
1 parent 014e1f0 commit 7a5512e
Show file tree
Hide file tree
Showing 7 changed files with 926 additions and 49 deletions.
48 changes: 3 additions & 45 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
# Some settings #
###################

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite
*.model
*.txt

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

# media #
#########
*.mp3
*.mp4
*.mid
.DS_Store
/vendor/
/build/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

首先必須先將 CKIPClient.php 類別程式匯進需要使用到斷詞的 PHP 程式:

require_once "CKIPClient.php";
require_once "src/CKIPClient.php";

接下來使用「線上服務申請」中取得的 server ip 、 server port 、 username 及 password 初始化 CKIPClient 物件:

Expand Down
10 changes: 8 additions & 2 deletions schedule-ckip-test-driver.php → ckip-test-driver-schedule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* schedule-ckip-test-driver.php
* ckip-test-driver-schedule.php
*
* PHP version 5
*
Expand All @@ -12,7 +12,13 @@
* @link http://[email protected]
*/

require_once "CKIPClient.php";
require_once "src/CKIPClient.php";

// change to yours
define("CKIP_SERVER", "000.000.000.000");
define("CKIP_PORT", 0000);
define("CKIP_USERNAME", "xxxxxx");
define("CKIP_PASSWORD", "xxxxxxxxx");

$ckip_client_obj = new CKIPClient(
CKIP_SERVER,
Expand Down
8 changes: 7 additions & 1 deletion ckip-test-driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
* @link http://[email protected]
*/

require_once "CKIPClient.php";
require_once "src/CKIPClient.php";

// change to yours
define("CKIP_SERVER", "000.000.000.000");
define("CKIP_PORT", 0000);
define("CKIP_USERNAME", "xxxxxx");
define("CKIP_PASSWORD", "xxxxxxxxx");

$ckip_client_obj = new CKIPClient(
CKIP_SERVER,
Expand Down
19 changes: 19 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "fukuball/ckip-client-php",
"description": "中研院斷詞系統的 Client 端程式,讓有中文斷詞需求的研究者或程式人員可以專注於開發自己的核心演算法。",
"require-dev": {
"phpunit/phpunit": ">=3.7.0",
"satooshi/php-coveralls": "dev-master"
},
"license": "MIT",
"authors": [
{
"name": "Fukuball Lin",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"require": {
"php": ">= 5.3"
}
}
Loading

0 comments on commit 7a5512e

Please sign in to comment.