PHPackages                             m2sh/aparatvideouploader - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. m2sh/aparatvideouploader

AbandonedArchivedLibrary[File &amp; Storage](/categories/file-storage)

m2sh/aparatvideouploader
========================

a simple class that uploads video into aparat.com video sharing website

3101[1 issues](https://github.com/m2sh/AparatVideoUploader/issues)PHP

Since Mar 5Pushed 10y ago2 watchersCompare

[ Source](https://github.com/m2sh/AparatVideoUploader)[ Packagist](https://packagist.org/packages/m2sh/aparatvideouploader)[ RSS](/packages/m2sh-aparatvideouploader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AparatVideoUploader
===================

[](#aparatvideouploader)

[![Build Status](https://camo.githubusercontent.com/e0f6b4e5222fc07c3596d86514cc6bf17899d26532a58304ea34d29338ae8545/68747470733a2f2f7472617669732d63692e6f72672f6d3273682f417061726174566964656f55706c6f616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/m2sh/AparatVideoUploader)

Simple Video Uploader for [Aparat.com](http://aparat.com) based on [Goutte](https://github.com/FriendsOfPHP/Goutte) .

\###Installation Using `Composer` :
`composer require m2sh/aparatvideouploader`
Or
Clone this repo with
`git clone https://github.com/m2sh/AparatVideoUploader`
Then install Dependencies with `composer install`\###Requirments

- Because of using `GuzzleHttp` client in `Goutte` this package only work on PHP version 5.5 &amp; above.
- An Account from [Aparat.com](http://aparat.com).

\###Usage First include composer auto loader :

```
include 'vendor/autoload.php'

```

Create instalnce from uploader class :

```
$uploader = new \m2sh\AparatVideoUploader\AparatVideoUploader();

```

Specify `username` &amp; `password` of your aparat.com account :

```
$uploader->setAuthenticationInfo('YOUR USERNAME', 'YOUR PASSWORD');

```

\###Methods ####Login Login User to aparat.com :
`$uploader->login();`
To find out that the login is successful, check `isUserLoggedIn` property :

```
if($uploader->isUserLoggedIn) {
    // do something
}

```

#### PrepareUpload

[](#prepareupload)

Prepares uploader to uploading video :
`$uploader->prepareUpload();`
Also you can use Chain method like this :
`$uploader->login()->prepareUpload();`
\####GetVideoCategories Get Video Categories for UploadVideo

```
$categories = $uploader->getVideoCategories();
echo $categories[0];

```

\####UploadFromFile Upload Video From file to your account :

```
$file =  __DIR__ . "/video/ghost.mp4";

$videoDetail = [
	'title' => 'پسری که روح می‌شود',
	'description' => 'شوخی با پدر',
        'category' => 2,
	    'tags' => ['روح','شوخی'],
    'comment_permission' => 'no'
];

$uploader->uploadFromFile($file,$videoDetail);

```

#### GetVideoList

[](#getvideolist)

Get uploaded video list
`$videoList = $uploader->getVideoList();'`

#### RemoveVideo

[](#removevideo)

Removes Video with given `remove_link` url from `GetVideoList` method :
`$uploader->removeVideo($videoList[0]['remove_link']);`

\###Issues If you have find any bug in this package please create new issue.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/52eba4d8b1b51a94e3f82ac348403098c5706258ce9023d76d870d7e7768cf2d?d=identicon)[m2sh](/maintainers/m2sh)

---

Top Contributors

[![m2sh](https://avatars.githubusercontent.com/u/4946048?v=4)](https://github.com/m2sh "m2sh (23 commits)")

### Embed Badge

![Health badge](/badges/m2sh-aparatvideouploader/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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