Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
FuelPHPでSentry - FuelPHP勉強会 東京 vol.3
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
fagai
March 14, 2022
21
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
FuelPHPでSentry - FuelPHP勉強会 東京 vol.3
slideshareにあげていたやつです。
fagai
March 14, 2022
More Decks by fagai
See All by fagai
ニコ生を始めよう - FuelPHP勉強会 東京 vol.2
fagai
0
18
Laravel5にアップグレードする際に詰まった点 - Laravel Meetup Tokyo Vol.7
fagai
0
11
Laravelの良いところ - PHP勉強会 東京 vol.121
fagai
0
13
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
ラッコキーワード サービス紹介資料
rakko
5
5.7M
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
320
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Ruling the World: When Life Gets Gamed
codingconduct
0
430
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
820
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
Side Projects
sachag
456
43k
The Curious Case for Waylosing
cassininazir
1
610
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
830
Transcript
FuelPHPͰSentry FuelPHPษڧձ ౦ژ vol.3 fagai
Profile • ϑΝΨΠ@fagai • 21ࡀ • χίੜओɻ(co443753) • ແ৬→גࣜձࣾαϜβοϓ •
PHP,HTML5,CSS3,JavaScript
Sentry ͬͯ·͢ʁ
Sentry - ೝূύοέʔδ- https:/ /github.com/cartalyst/sentry
Sentryͷར ෳϑϨʔϜϫʔΫʹରԠ (Laravel4,FuelPHP1.x,CodeIgniter3.x) ϑϨʔϜϫʔΫͳ͠Ͱಈ͘ ϚχϡΞϧ͕ӳޠͰ͔Γ͍͢ʂ SimpleAuthΑΓଟػೳ(Ծొ➡ೝূग़དྷΔ)
Ϣʔβॲཧܥ ௨ৗొ(create) Ծొ(register)➡ೝূ(activate)ػೳ ύεϫʔυϦηοτػೳ(reset password) ػೳ੍ݶ(parmission)
ಋೖ ಋೖʹComposer͕ඞཁ ComposerFuelPHP1.6͔Βඪ४ରԠΒ͍͠ fuel/appʹͯ wget http:/ /getcomposer.org/composer.phar
fuel/app/Composer.json { “require”: { “cartalyst/sentry”: “2.0.*”, “illuminate/database”: “4.0.*”, “ircmaxell/password-compat”: “1.0.*”
}, “minimum-stability”: “dev” }
install php composer.phar install fuel/app/bootstrap.php Autoloader::register(); require APPPATH. ‘vendor/autoload.php’; class_alias(‘Cartalyst\Sentry\Facades\FuelPHP\Sentry’,
‘Sentry’);
install php composer.phar install fuel/app/bootstrap.php Autoloader::register(); require APPPATH. ‘vendor/autoload.php’; class_alias(‘Cartalyst\Sentry\Facades\FuelPHP\Sentry’,
‘Sentry’);
migration - 1 php oil g migration create_users email:varchar[255] password:varchar[255]
permissions:text activated:tinyint[4]:default[0] activation_code:varchar[255]:default[null] persist_code:varchar[255]:default[null] reset_password_code:varchar[255]:default[null] first_name:varchar[255] last_name:varchar[255] created_at:timestamp updated_at:timestamp public function up() { ! \DBUtil::create_table('users', array(লུ), array('id')); \DBUtil::create_index('users', 'email', 'users_email_unique', 'UNIQUE'); } users migration fuel/app/migrations/001_create_users.php
migration - 2 php oil g migration create_groups name:varchar[255] permissions:text
created_at:timestamp updated_at:timestamp public function up() { ! \DBUtil::create_table('groups', array(লུ), array('id')); \DBUtil::create_index('groups', 'name', 'groups_name_unique', 'UNIQUE'); } groups migration fuel/app/migrations/002_create_groups.php
migration - 3,4 php oil g migration create_throttle user_id:int:unsigned attempts:int
suspended:tinyint[4] banned:tinyint[4] last_attempt_at:timestamp suspended_at:timestamp –no-timestamp throttle migration php oil g migration create_users_groups user_id:int:unsigned group_id:int:unsigned –no-timestamp users_groups migration php oil refine migrate
ಋೖऴྃ - ࢀߟ ɾGithub cartalyst/Sentry http:/ /github.com/cartalyst/sentry ɾ৽ਓWebΤϯδχΞͷهɻ http:/ /blog.fagai.net
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠