Download the PHP package visualplus/board without Composer

On this page you can find all versions of the php package visualplus/board. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package board

board

라라벨으로 게시판을 편하게 만들어주는 패키지입니다.

설치방법

설정방법

기본 스킨을 연결해주고 기본 db 테이블을 만들어주는 migration 파일을 복사하기 위한 단계입니다. ( 기본 스킨 및 migration 파일이 필요없다면 안하셔도 됩니다. )

ServiceProvider를 추가 후

명령어를 치면 database/migrations 안에 create_board.php 파일이 생깁니다. 이 파일은 게시판 설정 테이블, 게시글 테이블, 게시글 연결 파일 테이블을 생성을 도와줍니다.

create_board.php를 보면 게시판을 동작시키기 위한 기본 테이블의 구조가 정의되어있습니다.

모든 게시판은 게시글 저장할 테이블 1개, 파일을 저장할 테이블 1개가 꼭 필요하며 관리자 페이지에서 테이블명을 지정해주셔야 합니다. ( 파일 저장할 테이블은 게시글 테이블명 + '_files'로 통일합니다. )

관리자 페이지 설정

컨트롤러를 하나 생성 후 Visualplus\Board\AdminController를 상속합니다.

모델 바인딩

AdminController를 사용하기 위해서 모델을 필히 바인딩 해주셔야 합니다.

게시판 설정 모델을 적어줍니다. 기본으로 제공되는 테이블의 모델을 사용하시려면

위와같이 설정해주세요.

게시판 페이지 설정

컨트롤러를 하나 생성 후 Visualplus\Board\BoardController를 상속합니다.

옵션 변경

BoardController는 몇가지 옵션을 제공합니다.

게시판 설정 모델 바인딩

각 게시판 컨트롤러는 자신의 설정값을 가져오기 위해 게시판 설정 모델을 지정해줘야 합니다. 이 값은 기본값이 없으며 무조건 설정을 해주셔야 하는 값 입니다.

제공되는 migrations 파일을 그대로 사용을 하셨다면

위와 같이 설정을 해 주세요.

게시판 모델 바인딩

게시판 글을 저장할 모델과, 첨부파일을 저장할 모델이 필요합니다. 기본으로 제공되는 모델을 사용하며 테이블명은 따로 기재해주실 필요가 없습니다. ( 관리자페이지에서 해당 게시판의 테이블을 설정합니다. )

임의로 만든 모델을 사용하고 싶으시다면 위 값을 변경해주세요.

스킨.

초기 게시판 스킨은 기본 스킨이며 별로 이쁘지 않습니다. 그러므로 각자 스타일에 맞게 커스터마이징을 하셔야 합니다. 게시판의 스킨은

  1. index.blade.php -> 게시글 리스트
  2. create.blade.php -> 게시글 생성, 게시글 수정
  3. show.blade.php -> 게시글 보기

위 3가지 파일이 필요하며. 스킨을 만드신 후 접근가능한 view 위치를 지정해주시면 됩니다. 예를들어 'board::'는 패키지 내의 'views' 디렉토리와 매핑되어있으며, views안에 basic이라는 디렉토리가 있습니다. 그러므로 'board::basic'은 'vendor/visualplus/board/src/views/basic'을 참조하며 이 디렉토리 안에 위에 나열한 3가지 파일이 모두 있어야 합니다.

스킨은 관리자 화면에서 게시판 생성시 설정할 수 있습니다.

한 화면에 표시할 리스트 개수.

기본 10개의 게시글을 한 페이지에 뿌려줍니다. 위 값을 알맞게 변경하여 사용하세요.

파일 업로드 경로

게시글 작성시 첨부한 파일은 기본으로 storage/app/board 디렉토리에 저장됩니다. 파일명은 현재 timestamp + 올린 파일 확장자 입니다.

위 값을 변경하여 첨부파일이 저장될 위치를 수정하세요.

라우팅 설정

위와 같이 설정해주시면 됩니다.

접근은

으로 가능합니다.

네이버 스마트 에디터 사용

스마트 에디터를 사용할 뷰에서 아래 내용을 입력해주세요. textarea가 들어가야 할 곳에서 include해주시면 됩니다.

basic/create.blade.php 참조.


All versions of board with dependencies

PHP Build Version
Package Version
Requires illuminate/html Version >=4.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package visualplus/board contains the following files

Loading the files please wait ....