Coder Social home page Coder Social logo

kenjis / fuelphp1st-2nd-contact-form Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 5.53 MB

『はじめてのフレームワークとしてのFuelPHP 第2版(改訂版)』のコンタクトフォーム

Home Page: https://github.com/kenjis/fuelphp1st-2nd

License: MIT License

PHP 98.87% ApacheConf 1.13%

fuelphp1st-2nd-contact-form's Introduction

『はじめてのフレームワークとしてのFuelPHP 第2版(改訂版)』のコンタクトフォーム

達人出版会およびラトルズ刊行の『はじめてのフレームワークとしてのFuelPHP 第2版(改訂版)』で作成する「コンタクトフォーム」です。

書籍の詳細は、『はじめてのフレームワークとしての FuelPHP 第2版(改訂版)』サポートサイトを参照願います。

FuelPHP 1.7.2で書籍の手順どおりに作成し、FuelPHP 1.7.3、1.8.0にアップデートしたものです(1.7.2の状態が見たい場合はタグfuel-1.7.2を、1.7.3の状態が見たい場合はタグfuel-1.7.3をチェックアウトしてください)。ソースコードは、書籍で解説されています。

テストカバー率は、現在、行レベルで48.43%です。

このコンタクトフォームは学習用で一部未完成です。

動作環境

  • PHP 5.4以上
  • Apache
  • MySQL

インストール方法

ソースコードのインストール

$ git clone https://github.com/kenjis/fuelphp1st-2nd-contact-form.git
$ cd fuelphp1st-2nd-contact-form
$ php composer.phar self-update
$ php composer.phar install

データベースの作成

MySQLにデータベースを作成します。

> CREATE DATABASE `fuel_dev` DEFAULT CHARACTER SET utf8;
> CREATE DATABASE `fuel_test` DEFAULT CHARACTER SET utf8;
> GRANT ALL PRIVILEGES ON fuel_dev.* TO username@localhost IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON fuel_test.* TO username@localhost;

テーブルの作成

マイグレーションで必要なテーブルを作成します。

$ oil refine migrate:current
$ FUEL_ENV=test oil refine migrate:current
$ oil refine migrate:current --packages=auth
$ FUEL_ENV=test oil refine migrate:current --packages=auth

Apacheの設定

http://localhost/fuelphp/form でアクセスできるように設定します。

$ cd /path/to/htdocs/
$ ln -s /path/to/fuelphp1st-2nd-contact-form/public/ fuelphp

管理者アカウントの作成

$ oil console
Fuel 1.7.2 - PHP 5.5.10 (cli) (Apr 10 2014 17:49:03) [Darwin]
>>> Auth::create_user('admin', 'password', '[email protected]', 100);
1
>>> exit

http://localhost/fuelphp/admin から以下の管理者アカウントでログインできます。

 ユーザ名:admin
パスワード:password

テストの実行

ユニットテスト

$ oil test --group=App
$ oil test --group=App --coverage-html=coverage

ファンクショナルテスト

$ oil test --group=Functional

ライセンス

MITライセンスです。LICENSE.mdを参照してください。

関連

fuelphp1st-2nd-contact-form's People

Contributors

dhrrgn avatar wanwizard avatar frankdejonge avatar kenjis avatar abdel avatar tarnfeld avatar huglester avatar dudeami avatar mikebranderhorst avatar fesplugas avatar el2ro avatar lukeholder avatar crynobone avatar five07 avatar it-can avatar snrp avatar tomschlick avatar enygma avatar logicbox avatar theycallmeswift avatar bobthecow avatar jamierumbelow avatar watilde avatar billmn avatar dmyers avatar ericlbarnes avatar erichelgeson avatar jeffutter avatar johanandre avatar alrik11es avatar

Stargazers

Yusuke Egami avatar Kazumi IWANAGA(OHIRA) / @dz_ avatar  avatar

Watchers

 avatar James Cloos avatar Kazumi IWANAGA(OHIRA) / @dz_ avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.