Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@junichi11
junichi11 / cddl.txt
Created July 8, 2012 12:39
License : CDDL, GPLv2, MIT license
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
1. Definitions.
1.1. Contributor means each individual or entity that creates or
contributes to the creation of Modifications.
1.2. Contributor Version means the combination of the Original
Software, prior Modifications used by a Contributor (if any),
and the Modifications made by that particular Contributor.
@junichi11
junichi11 / _cake_auto_completion_.php
Created July 14, 2012 15:13
cakephp-netbeans plugin create auto code completion file sample
<?php
/**
* For CakePHP Component & Model Code Completion
* ==================================================
* Model
* ==================================================
* @property Member $Member
* @property TreeBehavior $Member
* @property AclBehavior $Member
* @property TranslateBehavior $Member
@junichi11
junichi11 / install
Created July 31, 2012 02:13
PHP CodeSniffer for CakePHP
pear upgrade PEAR
pear install PHP_CodeSniffer
pear channel-discover pear.cakephp.org
pear install cakephp/CakePHP_CodeSniffer
@junichi11
junichi11 / cakephp-netbeans-license.txt
Created September 10, 2012 05:18
cakephp-netbeans license file
/*
* cakephp-netbeans
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under Dual License consisting of the Common Development and Distribution
* License (CDDL) v1.0 and GNU General Public License (GPL) v2
* Redistributions of files must retain the above copyright notice.
*
@junichi11
junichi11 / composer.json
Created October 1, 2012 23:32
CakePHP Plugin Composer Example
{
"repositories": [
{
"type":"package",
"package": {
"type" : "cakephp-plugin",
"name" : "junichi11/Plupload",
"version" : "1.0",
"dist": {
"url": "https://github.com/junichi11/CakePHP-Plupload-Plugin/zipball/master",
@junichi11
junichi11 / composer.json
Created October 3, 2012 11:33
Composer template for CakePHP Plugin
{
"name": "vendor/plugin_name",
"type": "cakephp-plugin",
"description": "Moge Plugin for CakePHP",
"keywords": ["cakephp","moge"],
"homepage": "https://github.com/yousername/your_plugin",
"license": "MIT",
"authors": [
{
"name": "hoge moge",
@junichi11
junichi11 / configuration.xml
Created October 6, 2012 14:04
PHPUnit for CakePHP (exclude core)
<phpunit>
<filter>
<blacklist>
<directory suffix=".php">path\to\NetBeansProjects\cakephp\lib</directory>
</blacklist>
</filter>
</phpunit>
@junichi11
junichi11 / CakePHPControllerSuite.php
Created October 7, 2012 06:34
PHPUnit Test Suite for CakePHP
<?php
class CakePHPControllerSuite extends PHPUnit_Framework_TestSuite {
public static function suite() {
$suite = new CakeTestSuite('Cake Controller Test Sute');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Controller');
return $suite;
}
@junichi11
junichi11 / phpunit.bat
Created October 11, 2012 06:26
CakePHP PHPUnit for NetBeans
@echo off
set NETBEANSSUITE=
:loop
if "%1"=="" goto end
if "%1"=="NetBeansSuite" goto suite
set NETBEANSSUITE=%NETBEANSSUITE% %1
shift
goto loop
:suite
set NETBEANSSUITE=%NETBEANSSUITE% %1
@junichi11
junichi11 / CakePHPControllerSuite.php
Created October 12, 2012 13:03
CakePHPTestSuite for NetBeans
<?php
class CakePHPControllerSuite extends CakeTestSuite {
public static function suite() {
$suite = new CakePHPControllerSuite('Cake Controller Test Sute');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Controller');
return $suite;
}