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

민호.닷컴

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

민호.닷컴

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

공부합시다/php (16)
COMPOSER 2.x 버전 설치 및 업데이트

##composer 설치 curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin/ //curl이 없을 경우 php cli로 실행 php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2..

공부합시다/php 2023. 7. 13. 13:23
라라벨 EloquantModel Multiple PrimaryKey 이슈

Laravel9 모델 PrimayKey가 2개 이상일 때 create, update 사용 시 Illegal offset type //model.php

공부합시다/php 2023. 7. 5. 13:32
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
Codeigniter3 + graphql-php

# Composer 설치 # composer 설치해준다. php5.6 이상에서 사용할 수 있음. composer require webonyx/graphql-php # Core/Controller.php class Graphql_Controller extends CI_Controller { public function __construct() { parent::__construct(); } public function response($schema=null) { try{ $input = json_decode(file_get_contents('php://input'), true); $query = $input['query']; $variableValues = isset($input['variables']) ..

공부합시다/php 2021. 6. 2. 15: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
이전 1 2 다음
이전 다음
공지사항
  • 오예 도메인 주소 변경
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 코드스쿨
  • 코드전쟁!@
  • 변수명짓기
  • PHP-GRAPHQL
  • 해커랭크
  • excaildraw
TAG
  • laravel-test
  • Laravel
  • 정의
  • exception-test
  • redis
  • observer 매개변수 전달하기
  • POP3
  • MySQL
  • 정규식
  • graphql-php
  • l5-swagger-response
  • msmtp
  • 메일
  • 테스트_다중트랜잭션
  • l5-swagger
  • bitwarden-cli
  • Python
  • aaa패턴
  • eloquent-observer
  • graphql
  • addMonth
  • addMonthWithoutOverflow
  • 자바스크립트
  • 라라벨
  • 컨테이너내에서 메일 발송하기
  • django
  • php
  • laravel-kafka
  • vim
  • password-manager
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바