Skip to content

Commit

Permalink
Merge pull request #122 from inovector/v2-next
Browse files Browse the repository at this point in the history
v2
  • Loading branch information
lao9s authored Jan 18, 2025
2 parents cff0bdb + 411de89 commit ad5b242
Show file tree
Hide file tree
Showing 333 changed files with 8,431 additions and 6,848 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: run-tests

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]

jobs:
run-tests:
Expand All @@ -29,8 +29,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
laravel: [^9.0, ^10.0]
php: [ 8.2, 8.3 ]
laravel: [ ^10.47|^11.0 ]

name: P${{ matrix.php }} - L${{ matrix.laravel }}

Expand All @@ -47,7 +47,7 @@ jobs:

- name: Set Laravel version
run: |
sed -i 's/^9.0|^10.0/${{ matrix.laravel }}/g' composer.json
sed -i 's/^10.47|^11.0/${{ matrix.laravel }}/g' composer.json
- name: Install composer dependencies
uses: ramsey/composer-install@v2
Expand Down
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
[![Total Downloads](https://img.shields.io/packagist/dt/inovector/mixpost.svg?style=flat-square)](https://packagist.org/packages/inovector/mixpost)

## Introduction
**Mixpost** it's the coolest **Self hosted social media management software**.

This package is the **Lite version** of Mixpost Pro.

Mixpost is a robust and versatile **social media management platform**, designed to streamline **social media operations** and enhance **content marketing strategies**. Our platform empowers brands and businesses to effectively manage their **online presence**, leading them to success in the dynamic digital landscape. Mixpost's mission is to offer a comprehensive and powerful solution, enabling users to elevate their **social media management** and achieve tangible results.

Expand Down Expand Up @@ -69,20 +66,16 @@ Please see [Releases](../../releases) for more information what has changed rece

## Contributing

By participating in this project you agree to these conditions 👇

Please note that this project is a [commercial product](https://mixpost.app/), and this repository is the lite version
of Mixpost Pro. We work hard to offer the community the best free social media manager solution and please read this
section carefully.
By participating in this project, you agree to the following terms 👇

If you want to add a feature, it's better to open an issue before you start coding. It is important for us that features
from the Lite version do not correlate with features from the Mixpost Pro. PRs with optimizations, bug fixes are
welcome.
This repository contains the Lite version of Mixpost Pro, a [commercial product](https://mixpost.app/) product. We’re committed to providing the community with the best free social media management solution. Please read the information below carefully.

Please, be very clear on your commit messages and pull requests, empty pull request messages may be rejected.
- If you’d like to add a feature, please open an issue first to discuss it before you begin coding. It’s essential that Lite version features remain distinct from those in Mixpost Pro.
- Pull requests (PRs) for optimizations and bug fixes are always welcome.
- Make sure your commit messages and pull request descriptions are clear and informative. PRs with empty descriptions may be rejected.
- When contributing code to Mixpost, you must follow
the [PSR-12 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md).

When contributing code to Mixpost, you must follow
the [PSR-12 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md).
The golden rule is: Imitate the existing Mixpost code.

## Security Vulnerabilities
Expand Down
36 changes: 20 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "inovector/mixpost",
"description": "Self-hosted social media management software",
"description": "Self-hosted social media management software.",
"keywords": [
"inovector",
"mixpost",
"social",
"scheduling",
"laravel"
"social-media-management",
"content-scheduling",
"social-platform-integration",
"calendar-scheduling",
"self-hosted",
"open-sourced",
"mixpost"
],
"homepage": "https://github.com/inovector/mixpost",
"license": "MIT",
Expand All @@ -18,28 +20,30 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-fileinfo": "*",
"guzzlehttp/guzzle": "^7.5",
"illuminate/contracts": "^9.28|^10.0",
"inertiajs/inertia-laravel": "^0.6.9",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^10.47|^11.0",
"inertiajs/inertia-laravel": "^1.0",
"inovector/twitteroauth": "^7.0",
"intervention/image": "^2.7",
"laravel/horizon": "^5.0",
"php-ffmpeg/php-ffmpeg": "^1.0",
"spatie/laravel-package-tools": "^1.14",
"spatie/temporary-directory": "^2.1",
"tightenco/ziggy": "1.*"
},
"require-dev": {
"nunomaduro/collision": "^6.0",
"orchestra/testbench": "^7.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-faker": "^1.0",
"pestphp/pest-plugin-laravel": "^1.1",
"laradumps/laradumps": "^3.1",
"nunomaduro/collision": "^8.1",
"orchestra/testbench": "^9.2",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-faker": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
Expand Down
9 changes: 6 additions & 3 deletions database/factories/AccountFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ class AccountFactory extends Factory

public function definition()
{
$providers = ['twitter', 'mastodon', 'facebook_page', 'facebook_group'];
$providers = ['twitter', 'mastodon', 'facebook_page'];

$name = $this->faker->name;

return [
'uuid' => $this->faker->uuid,
'name' => $name,
'username' => Str::camel($this->faker->name),
'provider' => $providers[rand(0, 3)],
'provider' => $providers[rand(0, 2)],
'provider_id' => Str::random(),
'media' => ['disk' => 'public', 'path' => '/'],
'access_token' => ['auth_token' => Str::random()]
'data' => null,
'authorized' => true,
'access_token' => ['access_token' => Str::random()]
];
}
}
1 change: 1 addition & 0 deletions database/factories/MediaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function definition()
$size = $this->faker->randomDigit();

return [
'uuid' => $this->faker->uuid,
'name' => $this->faker->domainName,
'mime_type' => $this->faker->mimeType(),
'disk' => 'public',
Expand Down
1 change: 1 addition & 0 deletions database/factories/PostFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function definition()
$scheduled = now()->addDays(rand(1, 30));

return [
'uuid' => $this->faker->uuid,
'status' => $status->value,
'schedule_status' => $status === PostStatus::PUBLISHED ? PostScheduleStatus::PROCESSED : PostScheduleStatus::PENDING,
'scheduled_at' => $status !== PostStatus::DRAFT ? $scheduled : null,
Expand Down
3 changes: 2 additions & 1 deletion database/factories/ServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public function definition()
{
return [
'name' => $this->faker->domainName,
'credentials' => ['client_id' => $this->faker->randomDigit(), 'client_secret' => $this->faker->randomDigit()]
'configuration' => ['client_id' => $this->faker->randomDigit(), 'client_secret' => $this->faker->randomDigit()],
'active' => $this->faker->boolean(),
];
}
}
1 change: 1 addition & 0 deletions database/factories/TagFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class TagFactory extends Factory
public function definition()
{
return [
'uuid' => $this->faker->uuid(),
'name' => $this->faker->domainName,
'hex_color' => Str::after($this->faker->hexColor, '#')
];
Expand Down
38 changes: 0 additions & 38 deletions database/migrations/create_mixpost_accounts_table.php.stub

This file was deleted.

34 changes: 0 additions & 34 deletions database/migrations/create_mixpost_audience_table.php.stub

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions database/migrations/create_mixpost_imported_posts_table.php.stub

This file was deleted.

38 changes: 0 additions & 38 deletions database/migrations/create_mixpost_media_table.php.stub

This file was deleted.

Loading

0 comments on commit ad5b242

Please sign in to comment.