PHPackages                             kaxyum/cameraapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kaxyum/cameraapi

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kaxyum/cameraapi
================

a Pocketmine-MP API to use CameraPacket

120PHP

Since Jun 30Pushed 2y agoCompare

[ Source](https://github.com/HadesNetwork/CameraAPI)[ Packagist](https://packagist.org/packages/kaxyum/cameraapi)[ RSS](/packages/kaxyum-cameraapi/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

CameraAPI
=========

[](#cameraapi)

CameraAPI is an API that makes it easy to use the CameraPacket.

Usage
=====

[](#usage)

Install [SimplePacketHandler](https://github.com/Muqsit/SimplePacketHandler/releases) on your server

Register CameraHandler

```
if(!CameraHandler::isRegistered())
{
    CameraHandler::register($this);
}
```

Set Camera Instruction
======================

[](#set-camera-instruction)

```
// only the argument preset is compulsory
$setCameraInstruction = new SetCameraInstruction();
$setCameraInstruction->setPreset(CameraPresets::FREE()); //CameraPresets::FIRST_PERSON(), CameraPresets::THIRD_PERSON(), CameraPresets::THIRD_PERSON_FRONT()
$setCameraInstruction->setEase(CameraSetInstructionEaseType::LINEAR, 1);
$setCameraInstruction->setCameraPostion(new Vector3(100, 100, 100));
$setCameraInstruction->setRotation(0, 0);
$setCameraInstruction->setFacingPosition(new Vector3(0, 0, 0));
$setCameraInstruction->send($player);
```

Fade Camera Instruction
=======================

[](#fade-camera-instruction)

```
// no argument is compulsory
$fadeCameraInstruction = new FadeCameraInstruction();
$fadeCameraInstruction->setTime(1, 5, 1);
$fadeCameraInstruction->setColor(225, 225, 225);
$fadeCameraInstruction->send($player);
```

Clear Camera Instruction
========================

[](#clear-camera-instruction)

```
// no argument is compulsory
$clearCameraInstruction = new ClearCameraInstruction();
$clearCameraInstruction->setClear(true);
$clearCameraInstruction->send($player);
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64813399?v=4)[Jibix](/maintainers/J1b1x)[@J1b1x](https://github.com/J1b1x)

---

Top Contributors

[![kaxyum](https://avatars.githubusercontent.com/u/98211455?v=4)](https://github.com/kaxyum "kaxyum (19 commits)")[![J1b1x](https://avatars.githubusercontent.com/u/64813399?v=4)](https://github.com/J1b1x "J1b1x (2 commits)")[![poggit-bot](https://avatars.githubusercontent.com/u/22427965?v=4)](https://github.com/poggit-bot "poggit-bot (2 commits)")

### Embed Badge

![Health badge](/badges/kaxyum-cameraapi/health.svg)

```
[![Health](https://phpackages.com/badges/kaxyum-cameraapi/health.svg)](https://phpackages.com/packages/kaxyum-cameraapi)
```

###  Alternatives

[loganmarchione/homelab-svg-assets

Full-color SVG icons of homelab-related software, products, and brands

1.2k1.7k](/packages/loganmarchione-homelab-svg-assets)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
