PHPackages                             pixalsver/camera-api - 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. [API Development](/categories/api)
4. /
5. pixalsver/camera-api

ActiveLibrary[API Development](/categories/api)

pixalsver/camera-api
====================

a Pocketmine-MP API to use CameraPacket

16PHP

Since Jul 8Pushed 1y agoCompare

[ Source](https://github.com/Pixals-Bedrock/CameraAPI)[ Packagist](https://packagist.org/packages/pixalsver/camera-api)[ RSS](/packages/pixalsver-camera-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CameraAPI
=========

[](#cameraapi)

CameraAPI is an API that makes it easy to use the CameraPacket., Pixals Network Has Updated The Composer.json only, All Copyrights are reserved to the original author

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

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 53.3% 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://www.gravatar.com/avatar/6856810486b756a1b6fabedcfef0b024f4a49f44d95765f31e7146517e33229a?d=identicon)[oPinqzz](/maintainers/oPinqzz)

---

Top Contributors

[![oPinqzz](https://avatars.githubusercontent.com/u/82214170?v=4)](https://github.com/oPinqzz "oPinqzz (24 commits)")[![kaxyum](https://avatars.githubusercontent.com/u/98211455?v=4)](https://github.com/kaxyum "kaxyum (19 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/pixalsver-camera-api/health.svg)

```
[![Health](https://phpackages.com/badges/pixalsver-camera-api/health.svg)](https://phpackages.com/packages/pixalsver-camera-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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