본문 바로가기 메뉴 바로가기

민호.닷컴

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

민호.닷컴

검색하기 폼
  • 분류 전체보기 (104)
    • 소소한일상 (7)
    • 관심폭발 (5)
    • 공부합시다 (75)
      • ionic (2)
      • php (16)
      • express (2)
      • python (5)
      • Golang (4)
    • 비밀이여 (0)
    • 갑자기 문뜩 (5)
    • What did u do today (0)
  • 방명록

php (8)
반응형
l5-swagger Response에 Schema + Property 추가하기

이슈`l5-swagger` 사용시 모델에 정의된 Schema에 Resource에 맞는 Property를 추가하는데 이슈가 있었다.https://github.com/DarkaOnLine/L5-Swagger?tab=readme-ov-file GitHub - DarkaOnLine/L5-Swagger: OpenApi or Swagger integration to LaravelOpenApi or Swagger integration to Laravel. Contribute to DarkaOnLine/L5-Swagger development by creating an account on GitHub.github.comGithub에도 자세한 메뉴얼이 없다보니 사용하는데 에로사항이 조금 있었는데, 우연히 검색하는 과정에..

공부합시다/php 2024. 8. 29. 17:05
Laravel Exception Test

php unit 테스트시 예외처리에 대한 테스트 확인 방법입니다.

공부합시다/php 2023. 11. 15. 16:55
PHP L5-Swagger 예시

L5-Swagger BookController Get all books URL: /api/books Method: GET Description: Get all books /** * @OA\Get( * path="/api/books", * tags={"Books"}, * summary="Get all books", * @OA\Response( * response=200, * description="Returns all books", * @OA\JsonContent( * type="array", * @OA\Items(ref="#/components/schemas/Book") * ), * ), * ) */ public function index() { return Book::all(); } Create a n..

공부합시다/php 2023. 6. 15. 08:29
array_count_values

PHP: array_count_values - Manual PHP: array_count_values - Manual In order to apply array_map with callback checking for localised values like city name, country name, you have to provide some sort of comparison array.Here's an example of array_count_values for Polish city names. Just switch array_keys / array_values in www.php.net /* * 배열에서 유니크한 키값과 갯수 조회하기 */ $array = array(1, "hello", 1, "wor..

공부합시다/php 2021. 3. 10. 23:11
PHPRedis 설치하기

PHP 에서 redis 에 연동하기 위한 client library predis: Pure PHP 로 개발 PHPRedis: C 언어로 만든 PHP 모듈 // 성능이 더 우수하다는 벤치마크 결과가 많다. ... 1. 설치하기 //yum으로 설치 yum install php-devel //apt로 설치 sudo apt install php-dev Linux 공통 // pecl install redis // igbinary 지원 여부: yes enable igbinary serializer support? [no] : yes // lzf 압축 지원 여부: yes enable lzf compression support? [no] : yes RHEL/Centos // php 의 모듈 디렉터리에 로딩을 위한 모듈..

공부합시다/php 2021. 2. 16. 08:37
Array를 Object로 변경하기

가끔 사용하다 보면 특히 API로 작업할 경우 결과를 Object로 전달해 줘야 할 때가 있다. 그럴 때 간단하게 형을 선언해주는 것 만으로도 변경이 가능하다. 참조 : https://www.lesstif.com/php-and-laravel/php-26083746.html PHP 배열을 오브젝트 변환 www.lesstif.com

공부합시다/php 2020. 5. 20. 14:09
php 정규식 테스트

https://www.phpliveregex.com/#tab-preg-match PHP Live Regex i case insensitive m treat as multi-line string s dot matches newline x ignore whitespace in regex A matches only at the start of string D matches only at the end of string U non-greedy matching by default www.phpliveregex.com

공부합시다/php 2020. 5. 19. 11:32
[php] 날짜 계산하기

round(abs(strtotime(date('Y-m-d'))-strtotime(종료일))/86400);

공부합시다 2014. 3. 17. 17:12
이전 1 다음
이전 다음
공지사항
  • 오예 도메인 주소 변경
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 코드스쿨
  • 코드전쟁!@
  • 변수명짓기
  • PHP-GRAPHQL
  • 해커랭크
  • excaildraw
TAG
  • 메일
  • vim
  • Python
  • bitwarden-cli
  • php
  • l5-swagger-response
  • django
  • 자바스크립트
  • 정규식
  • laravel-test
  • 테스트_다중트랜잭션
  • exception-test
  • 정의
  • eloquent-observer
  • Laravel
  • POP3
  • php-laravel
  • graphql
  • redis
  • aaa패턴
  • addMonth
  • observer 매개변수 전달하기
  • session+token authorize
  • graphql-php
  • MySQL
  • password-manager
  • l5-swagger
  • addMonthWithoutOverflow
  • 라라벨
  • laravel-kafka
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바