承接 kryptonit3/tmdb-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kryptonit3/tmdb-laravel

Composer 安装命令:

composer require kryptonit3/tmdb-laravel

包简介

TMDB Wrapper for Laravel

README 文档

README

A TMDB API wrapper for Laravel 5.

How this differs from other packages? Allows for searching with ease.

Installation composer require kryptonit3/tmdb-laravel:0.3

Set environment variables:

TMDB_API=YOUR-TMDB-API-KEY
TMDB_LANG=en

To get an API key you will need to register an account with TMDB. Once registered you can apply for API in your profile. (instant).

Note: TMDB_LANG only required when not using english (es, en, fr).

Add the following to your Service Providers array (config\app.php)

\Kryptonit3\TMDBLaravel\TMDBServiceProvider::class,
// for older PHP versions use 'Kryptonit3\TMDBLaravel\TMDBServiceProvider',

Publish the config file. (not required unless you want to change some default settings, but should be set in .env anyways.)

php artisan vendor:publish

It will then be located in config\kryptonit3_tmdb.php

you may now use all of the tmdb calls with the tmdb() helper function from the API authors repo here: https://github.com/pixelead0/tmdb_v3-PHP-API-

Example

$search = tmdb()->searchMovie('Avengers');
dd($search);

Results

array:20 [▼
  0 => Movie {#157 ▼
    -_data: array:14 [▼
      "poster_path" => "/cezWGskPY5x7GaglTTRN4Fugfb8.jpg"
      "adult" => false
      "overview" => "When an unexpected enemy emerges and threatens global safety and security, Nick Fury, director of the international peacekeeping agency known as S.H.I.E.L.D., finds himself in need of a team to pull the world back from the brink of disaster. Spanning the globe, a daring recruitment effort begins!"
      "release_date" => "2012-05-04"
      "genre_ids" => array:3 [▶]
      "id" => 24428
      "original_title" => "The Avengers"
      "original_language" => "en"
      "title" => "The Avengers"
      "backdrop_path" => "/hbn46fQaRmlpBuUrEiFqv0GDL6Y.jpg"
      "popularity" => 6.936048
      "vote_count" => 7783
      "video" => false
      "vote_average" => 7.28
    ]
    -_tmdb: null
  }
  1 => Movie {#156 ▶}
  2 => Movie {#155 ▶}
  3 => Movie {#159 ▶}
  4 => Movie {#161 ▶}
  5 => Movie {#162 ▶}
  6 => Movie {#163 ▶}
  7 => Movie {#164 ▶}
  8 => Movie {#165 ▶}
  9 => Movie {#166 ▶}
  10 => Movie {#167 ▶}
  11 => Movie {#168 ▶}
  12 => Movie {#169 ▶}
  13 => Movie {#170 ▶}
  14 => Movie {#171 ▶}
  15 => Movie {#172 ▶}
  16 => Movie {#173 ▶}
  17 => Movie {#174 ▶}
  18 => Movie {#175 ▶}
  19 => Movie {#176 ▶}
]

Here are some more examples - https://github.com/pixelead0/tmdb_v3-PHP-API-#movies

Just replace the $tmdb-> with tmdb()->

This author of the actual API wrapper: https://github.com/pixelead0/tmdb_v3-PHP-API-

kryptonit3/tmdb-laravel 适用场景与选型建议

kryptonit3/tmdb-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 523 次下载、GitHub Stars 达 4, 最近一次更新时间为 2016 年 01 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 kryptonit3/tmdb-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kryptonit3/tmdb-laravel 我们能提供哪些服务?
定制开发 / 二次开发

基于 kryptonit3/tmdb-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 523
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-24