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
Transcript
15 slides
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
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠
More Decks by fagai
See All by fagai
ニコ生を始めよう - FuelPHP勉強会 東京 vol.2
fagai
0
20
Laravel5にアップグレードする際に詰まった点 - Laravel Meetup Tokyo Vol.7
fagai
0
12
Laravelの良いところ - PHP勉強会 東京 vol.121
fagai
0
15
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
109
250k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
450
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
160
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.7k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Speed Design
sergeychernyshev
33
2.3k