//SMTP로 전송 $transport = Swift_SmtpTransport::newInstance(‘호스트', 25);//두번째는 포트 $mailer = Swift_Mailer::newInstance($transport); $mailer->send($message); //전송
### 라라벨
- 사전 준비 : 컴포저로 라라벨 설치 후 laravel new 프로젝트명 실행
```php
// 라우팅 프레임워크
Route::get('/url', function(){
return view('php파일이름', [전달 파라미터]);
});
// module.config.php ‘controllers' => array( ‘invokables' => array( ‘URL' => ‘Controller Path' ) )
## PHP REPL
php -a 명령을 실행하면 입력한 PHP코드의 결과를 바로 보여주는 환경으로 이동할 수 있다.
## 지역화
```php
$en = new Collator('en_US');
$en->sort($words); // 영문 뿐만 아니라 다양한 언어를 정렬할 수 있다.
$msg = "{0}";
$fmt = new MessageFormatter('en_US', $msg);
print $fmt->format(array(123)); // 결과는 123이 출력된다.