技術情報
- 2022年07月14日
- 技術情報
[Laravel] Auth 機能とMiddlewareの設定(3)
今回はLaravel標準の認証機能とMiddlewareによる認証チェック機能についての情報を
シェアしたいと思います。
本記事は前回の「[Laravel] Auth 機能とMiddlewareの設定(2)」の続きです。
nishida at 2022年07月14日 10:00:00
- 2022年07月12日
- 技術情報
5 useful image libraries for PHP developers
Today, I would like to share about 5 useful image libraries for PHP developers. Let’s take a look.
1. Zebra Image
This is a lightweight and object oriented image manipulation library. . It can convert one format to another format easily. The formats supported by Zebra Image including .JPG, .GIF and .PNG .
2. Dynamic Dummy Image Generator
This library is a free PHP script by which images of any size and color can be generated. And text can be written over the images.
3. PhpThumb
This library is a PHP image manipulating library that allows to rotate, crop, and watermark the mages and define their quality. It accepts all the source types for images.
4. Php Graphic Works
This library is for image manipulation on the server side. It allows to perform complex image processing in an easy way. It can perform rotating, cropping, resizing, stretching, and flipping.
5. Image Cache
This library is a lightweight PHP class to move, compress, and cache the image in the browser/ It can set various options such as the base URL, the directory, etc.
This is all for now. Hope you enjoy that.
By Asahi
waithaw at 2022年07月12日 10:00:00
- 2022年07月08日
- 技術情報
知っておいていただきたいこと – 10
今回も、Laravelの知っておいた方がいいとおもったことをいくつか紹介します。
laravelのカスタム検証ルールが必要時、
ルール・オブジェクトを作成する代わりに、クロージャを使用するだけです。
もしルールを再利用する必要があれば、その時は*ルール・オブジェクトにします。
Validator::make($request->all(), [
'title' => [
'required',
'max:255',
function($attribute, $value, $fail) {
if($value === 'foo'){
$fail('The '. $attribute. 'is invalid');
}
},
]
]);
ということで、今回はこれで終わります。
金曜担当 – Ami
asahi at 2022年07月08日 10:00:00
- 2022年07月05日
- 技術情報
Some Key Differences between Laravel & Symfony
Today, I would like to share about some key differences between Laravel and Symfony. Lets’ take a look.
Laravel and Symfony are both popular PHP frameworks. They have a lot in common. But some are different. For differences, first of all is directory structure. Their directory structure are different.
CLI Tool
Laravel has php artisan cli tool whereas Symfony has php bin/console
Code base type
Laravel provides usage of Facades and helper functions whereas Symfony relys more on concept of Dependency Injection.
ORM
Default ORM of Laravel is Eloquent. Symfony’s default is Doctrine.
Template Engine
Laravel’s default template engine is blade whereas Symfony’s one is Twig.
Performance
If about performances, the measurements vary depending on many facts. But most voting for app speed are got by Laravel. However, Symfony is also known for its optimization and easy long-term maintenance.
Internationalization
Laravel supports only PHP and JSON whereas Symfony can use several formats such as PHP, XLIFF, .po mo and so on.
This is all for now. Hope you enjoy that.
By Asahi
waithaw at 2022年07月05日 10:00:00
- 2022年07月04日
- 技術情報
Google Hangouts is shutting down
The web giant, Google announced that they will shut down its messaging app Hangouts before it officially shuts down in November.
Mobile app users will see an alert asking them to move their conversation to Google Chat. Google Chat is another online service. It can be accessed via Gmail and its own standalone application. Next month, conversations in the web version of Hangout will be ported to Gmail chat.
Google have been integrating these services into one platform for Gmail users, from Google Chat to Google Docs to Meet. These are also services available for corporate clients like Google Workspace, which supports accounts with personalized email addresses and cloud computing capabilities.
Google Hangouts was designed as a cross-platform instant messaging application for Google+, a currently non-functional social networking platform. In 2013, it became another app but it didn’t get any visible boost compared to alternative apps like WhatsApp, Facebook Messenger, Telegram.
Google started moving Workspace customers from Hangouts to Meet and Chat in 2020. Gmail users were also asked to migrate last year before Hangout was abolished altogether. Chat will become Google’s leading messaging platform in the future. Google said it will integrate more features, allowing users to make direct calls, start online threads in Spaces, and share and view multiple images.
Yuuma
yuuma at 2022年07月04日 10:00:00