Symfony bundle to publish status updates on Facebook, LinkedIn and Twitter.

Overview

Scrutinizer Code Quality Build Status Coverage Status Latest Stable Version Total Downloads

Upgrading?

Check the upgrade guide.


What's this?

This is a Symfony bundle written in PHP 7.1 that wraps martin-georgiev/social-post - an easy way for simultaneous publishing to multiple social networks. Currently, it integrates with Facebook, LinkedIn and Twitter.


How to install it?

Recommended way is through Composer

composer require martin-georgiev/social-post-bundle

Integration with Symfony

Add social networks configuration

# Usually part of config.yml
social_post:
    publish_on: [facebook, linkedin, twitter]         # List which Social networks you will be publishing to and configure your access to them as shown below
    providers:
        facebook:
            app_id: "YOUR-FACEBOOK-APP-ID"
            app_secret: "YOUR-FACEBOOK-APP-SECRET"
            default_access_token: "YOUR-FACEBOOK-NON-EXPIRING-PAGE-ACCESS-TOKEN"
            page_id: "YOUR-FACEBOOK-PAGE-ID"
            enable_beta_mode: true
            default_graph_version: "v2.8"             # Optional, also supports "mcrypt" and "urandom". Default uses the latest graph version.
            persistent_data_handler: "memory"         # Optional, also supports "session". Default is "memory".
            pseudo_random_string_generator: "openssl" # Optional, also supports "mcrypt" and "urandom". Default is "openssl".
            http_client_handler: "curl"               # Optional, also supports "stream" and "guzzle". Default is "curl".
        linkedin:
            client_id: "YOUR-LINKEDIN-APP-CLIENT-ID"
            client_secret: "YOUR-LINKEDIN-APP-CLIENT-SECRET"
            access_token: "YOUR-LINKEDIN-60-DAYS-LONG-USER-ACCESS-TOKEN"
            company_page_id: "YOUR-LINKEDIN-COMPANY-PAGE-ID"
        twitter:
            consumer_key: "YOUR-TWITTER-APP-CONSUMER-KEY"
            consumer_secret: "YOUR-TWITTER-APP-CONSUMER-SECRET"
            access_token: "YOUR-TWITTER-ACCESS-TOKEN"
            access_token_secret: "YOUR-TWITTER-ACCESS-TOKEN-SECRET"

Register the bundle

# Usually your app/AppKernel.php
<?php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new \MartinGeorgiev\SocialPostBundle\SocialPostBundle(),
        ];
        return $bundles;
    }
    // ...
}

Post a test message

# Some Symfony container aware class
<?php
//...
$message = new \MartinGeorgiev\SocialPost\Message('your test message');
$container->get('social_post')->publish($message);

Additional help

Twitter has limited features for tweet customisation. This means that for tweets only message and link values (MartinGeorgiev\SocialPost\Message instance) will be used.

Facebook doesn't support non-expiring user access tokens. Instead, you can obtain a permanent page access token. When using such tokens you can act and post as the page itself. More information about the page access tokens from the official Facebook documentation. Some Stackoverflow answers (here and here) also can of help.


License

This package is licensed under the MIT License.

Comments
  • Update phpunit/phpunit requirement from ^7.2 to ^8.0

    Update phpunit/phpunit requirement from ^7.2 to ^8.0

    Updates the requirements on phpunit/phpunit to permit the latest version.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    8.0.0 - 2019-02-01

    Changed

    • Implemented #3060: Cleanup PHPUnit\Framework\Constraint\Constraint
    • Implemented #3133: Enable dependency resolution by default
    • Implemented #3236: Define which parts of PHPUnit are covered by the backward compatibility promise
    • Implemented #3244: Enable result cache by default
    • Implemented #3288: The void_return fixer of php-cs-fixer is now in effect
    • Implemented #3439: Improve colorization of TestDox output
    • Implemented #3444: Consider data provider that provides data with duplicate keys to be invalid
    • Implemented #3467: Code location hints for [**requires**](https://github.com/requires) annotations as well as --SKIPIF--, --EXPECT--, --EXPECTF--, --EXPECTREGEX--, and --{SECTION}_EXTERNAL-- sections of PHPT tests
    • Implemented #3481: Improved --help output

    Deprecated

    • Implemented #3332: Deprecate annotation(s) for expecting exceptions
    • Implemented #3338: Deprecate assertions (and helper methods) that operate on (non-public) attributes
    • Implemented #3341: Deprecate optional parameters of assertEquals() and assertNotEquals()
    • Implemented #3369: Deprecate assertInternalType() and assertNotInternalType()
    • Implemented #3388: Deprecate the TestListener interface
    • Implemented #3425: Deprecate optional parameters of assertContains() and assertNotContains() as well as using these methods with string haystacks
    • Implemented #3494: Deprecate assertArraySubset()

    Removed

    • Implemented #2762: Drop support for PHP 7.1
    • Implemented #3123: Remove PHPUnit_Framework_MockObject_MockObject
    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

    You can always request more updates by clicking Bump now in your Dependabot dashboard.

    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)

    Finally, you can contact us by mentioning @dependabot.

    dependencies 
    opened by dependabot-preview[bot] 9
  • Error when trying to publish on facebook

    Error when trying to publish on facebook

    Hello, I'm using your bundle to post on Twitter and Facebook, twitter one is working correctly, but when i try to publish on fb im getting this error. I'm using exactly and only your documentation settings and code

    $message = new \MartinGeorgiev\SocialPost\Provider\Message('your test message'); $container->get('social_post')->publish($message);

    Cannot publish message. Last known error was: Cannot publish message. Last known error was: (#200) Posts where the actor is a page cannot also include a target_id other than EVENT or GROUP

    Thank you.

    help wanted 
    opened by josejbarneto 8
  • Release 3.0.1

    Release 3.0.1

    • Fix Symfony 4.2 deprecations for TreeBuilder
    • Fix PHPUnit deprecations for the configuration file
    • Replace dev dependency of satooshi/php-coveralls with php-coveralls/php-coveralls
    opened by martin-georgiev 7
  • Some suggestions

    Some suggestions

    Hi Martin,

    First of all, great job. Keep it up. Based on our use case I'd like to suggest the following: Option to disable one or the other (fb/twitter) Multiple credentials for both (so posts can be submitted to different accounts/pages based on Ability to auto-renew facebook token (we were not able to get one with an expiry date more than 2 months into the future).

    enhancement help wanted 
    opened by plamenh 6
  • Symfony3.4 Exception

    Symfony3.4 Exception

    Hi!

    I got this error when installing the latest version of the bundle and I don't know how to solve it

    (1/1) UndefinedMethodException Attempted to call an undefined method named "getRootNode" of class "Symfony\Component\Config\Definition\Builder\TreeBuilder".

    Thanks a lot. Regards

    bug 
    opened by DeveloperSlope3 4
  • [QUESTION] Providers list + HTML Template message

    [QUESTION] Providers list + HTML Template message

    Hi,

    Can you provide the list of providers that we can configure into this bundle ? And is it possible to send "html message template" or just "text message" ?

    Regards, Christophe

    question 
    opened by christophe-44-27 4
  • Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.8.2

    Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.8.2

    Updates the requirements on sensiolabs-de/deptrac-shim to permit the latest version.

    Release notes

    Sourced from sensiolabs-de/deptrac-shim's releases.

    0.8.2

    https://github.com/sensiolabs-de/deptrac/releases/tag/0.8.2

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 3
  • Support for Symfony 5

    Support for Symfony 5

    Symfony 5 is out now, can you update the bundle please.

    Run

        DIR=symfony5-bundle-test && mkdir $DIR && cd $DIR && symfony new --full . 
        composer require martin-georgiev/social-post-bundle
    

    Produces

    Using version ^3.0 for martin-georgiev/social-post-bundle
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Restricting packages listed in "symfony/symfony" to "5.0.*"
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - martin-georgiev/social-post-bundle v3.0.3 requires symfony/framework-bundle ^3.0|^4.1.12 -> no matching package found.
        - martin-georgiev/social-post-bundle v3.0.2 requires symfony/framework-bundle ^3.0|^4.0 -> no matching package found.
        - martin-georgiev/social-post-bundle v3.0.1 requires symfony/framework-bundle ^3.0|^4.0 -> no matching package found.
        - martin-georgiev/social-post-bundle v3.0.0 requires symfony/framework-bundle ^3.0|^4.0 -> no matching package found.
        - Installation request for martin-georgiev/social-post-bundle ^3.0 -> satisfiable by martin-georgiev/social-post-bundle[v3.0.0, v3.0.1, v3.0.2, v3.0.3].
    
    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
     - It's a private package and you forgot to add a custom repository to find it
    
    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
    
    Installation failed, reverting ./composer.json to its original content.
    
    
    
    opened by tacman 3
  • Issue with container

    Issue with container

    Hi there,

    Sorry if this is an obvious answer, but I am getting the following error when I attempt to post a message showing using your demo code:

    Notice: Undefined variable: container

    How do I go about fixing this?

    Thanks

    help wanted 
    opened by ghost 3
  • Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.10.0

    Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.10.0

    Updates the requirements on sensiolabs-de/deptrac-shim to permit the latest version.

    Release notes

    Sourced from sensiolabs-de/deptrac-shim's releases.

    0.10.0

    https://github.com/sensiolabs-de/deptrac/releases/tag/0.10.0

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 2
  • Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.9.0

    Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.9.0

    Updates the requirements on sensiolabs-de/deptrac-shim to permit the latest version.

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 2
  • allow empty publish_on

    allow empty publish_on

    The path "social_post.publish_on" should have at least 1 element(s) defined.

    for an easy way to disable posting it would be handy to allow an empty or null publish_on array.

    opened by c33s 1
  • Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.14.1

    Update sensiolabs-de/deptrac-shim requirement from ^0.7.1 to ^0.14.1

    Updates the requirements on sensiolabs-de/deptrac-shim to permit the latest version.

    Release notes

    Sourced from sensiolabs-de/deptrac-shim's releases.

    0.14.1

    https://github.com/qossmic/deptrac/releases/tag/0.14.1

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 0
  • Update friendsofphp/php-cs-fixer requirement from ^2.16 to ^3.0

    Update friendsofphp/php-cs-fixer requirement from ^2.16 to ^3.0

    Updates the requirements on friendsofphp/php-cs-fixer to permit the latest version.

    Release notes

    Sourced from friendsofphp/php-cs-fixer's releases.

    v3.0.0 Constitution

    The easiest way to update from v2.x is:

    • install v2.19 and run in verbose mode (php-cs-fixer fix -v) or in future mode (PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix) to identify and fix deprecations
    • install v3.0 and follow upgrade guide

    • bug #5164 Differ - surround file name with double quotes if it contains spacing. (SpacePossum)
    • bug #5560 PSR2: require visibility only for properties and methods (kubawerlos)
    • bug #5576 ClassAttributesSeparationFixer: do not allow using v2 config (kubawerlos)
    • feature #4979 Pass file to differ (paulhenri-l, SpacePossum)
    • minor #3374 show-progress option: drop run-in and estimating, rename estimating-max to dots (keradus)
    • minor #3375 Fixers - stop exposing extra properties/consts (keradus)
    • minor #3376 Tokenizer - remove deprecations and legacy mode (keradus)
    • minor #3377 rules - change default options (keradus)
    • minor #3378 SKIP_LINT_TEST_CASES - drop env (keradus)
    • minor #3379 MethodArgumentSpaceFixer - fixSpace is now private (keradus)
    • minor #3380 rules - drop rootless configurations (keradus)
    • minor #3381 rules - drop deprecated configurations (keradus)
    • minor #3382 DefinedFixerInterface - incorporate into FixerInterface (keradus)
    • minor #3383 FixerDefinitionInterface - drop getConfigurationDescription and getDefaultConfiguration (keradus)
    • minor #3384 diff-format option: drop sbd diff, use udiffer by default, drop SebastianBergmannDiffer and SebastianBergmannShortDiffer classes (keradus)
    • minor #3385 ConfigurableFixerInterface::configure - param is now not nullable and not optional (keradus)
    • minor #3386 ConfigurationDefinitionFixerInterface - incorporate into ConfigurableFixerInterface (keradus)
    • minor #3387 FixCommand - forbid passing 'config' and 'rules' options together (keradus)
    • minor #3388 Remove Helpers (keradus)
    • minor #3389 AccessibleObject - drop class (keradus)
    • minor #3390 Drop deprecated rules: blank_line_before_return, hash_to_slash_comment, method_separation, no_extra_consecutive_blank_lines, no_multiline_whitespace_before_semicolons and pre_increment (keradus)
    • minor #3456 AutoReview - drop references to removed rule (keradus)
    • minor #3659 use php-cs-fixer/diff ^2.0 (SpacePossum)
    • minor #3681 CiIntegrationTest - fix incompatibility from 2.x line (keradus)
    • minor #3740 NoUnusedImportsFixer - remove SF exception (SpacePossum)
    • minor #3771 UX: always set error_reporting in entry file, not Application (keradus)
    • minor #3922 Make some more classes final (ntzm, SpacePossum)
    • minor #3995 Change default config of native_function_invocation (dunglas, SpacePossum)
    • minor #4432 DX: remove empty sets from RuleSet (kubawerlos)
    • minor #4489 Fix ruleset @​PHPUnit50Migration:risky (kubawerlos)
    • minor #4620 DX: cleanup additional, not used parameters (keradus)
    • minor #4666 Remove deprecated rules: lowercase_constants, php_unit_ordered_covers, silenced_deprecation_error (keradus)
    • minor #4697 Remove deprecated no_short_echo_tag rule (julienfalque)
    • minor #4851 fix phpstan on 3.0 (SpacePossum)
    • minor #4901 Fix SCA (SpacePossum)
    • minor #5069 Fixed failing tests on 3.0 due to unused import after merge (GrahamCampbell)
    • minor #5096 NativeFunctionInvocationFixer - BacktickToShellExecFixer - fix integration test (SpacePossum)
    • minor #5171 Fix test (SpacePossum)
    • minor #5245 Fix CI for 3.0 line (keradus)
    • minor #5351 clean ups (SpacePossum)
    • minor #5364 DX: Do not display runtime twice on 3.0 line (keradus)
    • minor #5412 3.0 - cleanup (SpacePossum, keradus)
    • minor #5417 Further BC cleanup for 3.0 (keradus)

    ... (truncated)

    Changelog

    Sourced from friendsofphp/php-cs-fixer's changelog.

    Changelog for v3.0.0

    • bug #5164 Differ - surround file name with double quotes if it contains spacing. (SpacePossum)
    • bug #5560 PSR2: require visibility only for properties and methods (kubawerlos)
    • bug #5576 ClassAttributesSeparationFixer: do not allow using v2 config (kubawerlos)
    • feature #4979 Pass file to differ (paulhenri-l, SpacePossum)
    • minor #3374 show-progress option: drop run-in and estimating, rename estimating-max to dots (keradus)
    • minor #3375 Fixers - stop exposing extra properties/consts (keradus)
    • minor #3376 Tokenizer - remove deprecations and legacy mode (keradus)
    • minor #3377 rules - change default options (keradus)
    • minor #3378 SKIP_LINT_TEST_CASES - drop env (keradus)
    • minor #3379 MethodArgumentSpaceFixer - fixSpace is now private (keradus)
    • minor #3380 rules - drop rootless configurations (keradus)
    • minor #3381 rules - drop deprecated configurations (keradus)
    • minor #3382 DefinedFixerInterface - incorporate into FixerInterface (keradus)
    • minor #3383 FixerDefinitionInterface - drop getConfigurationDescription and getDefaultConfiguration (keradus)
    • minor #3384 diff-format option: drop sbd diff, use udiffer by default, drop SebastianBergmannDiffer and SebastianBergmannShortDiffer classes (keradus)
    • minor #3385 ConfigurableFixerInterface::configure - param is now not nullable and not optional (keradus)
    • minor #3386 ConfigurationDefinitionFixerInterface - incorporate into ConfigurableFixerInterface (keradus)
    • minor #3387 FixCommand - forbid passing 'config' and 'rules' options together (keradus)
    • minor #3388 Remove Helpers (keradus)
    • minor #3389 AccessibleObject - drop class (keradus)
    • minor #3390 Drop deprecated rules: blank_line_before_return, hash_to_slash_comment, method_separation, no_extra_consecutive_blank_lines, no_multiline_whitespace_before_semicolons and pre_increment (keradus)
    • minor #3456 AutoReview - drop references to removed rule (keradus)
    • minor #3659 use php-cs-fixer/diff ^2.0 (SpacePossum)
    • minor #3681 CiIntegrationTest - fix incompatibility from 2.x line (keradus)
    • minor #3740 NoUnusedImportsFixer - remove SF exception (SpacePossum)
    • minor #3771 UX: always set error_reporting in entry file, not Application (keradus)
    • minor #3922 Make some more classes final (ntzm, SpacePossum)
    • minor #3995 Change default config of native_function_invocation (dunglas, SpacePossum)
    • minor #4432 DX: remove empty sets from RuleSet (kubawerlos)
    • minor #4489 Fix ruleset @​PHPUnit50Migration:risky (kubawerlos)
    • minor #4620 DX: cleanup additional, not used parameters (keradus)
    • minor #4666 Remove deprecated rules: lowercase_constants, php_unit_ordered_covers, silenced_deprecation_error (keradus)
    • minor #4697 Remove deprecated no_short_echo_tag rule (julienfalque)
    • minor #4851 fix phpstan on 3.0 (SpacePossum)
    • minor #4901 Fix SCA (SpacePossum)
    • minor #5069 Fixed failing tests on 3.0 due to unused import after merge (GrahamCampbell)
    • minor #5096 NativeFunctionInvocationFixer - BacktickToShellExecFixer - fix integration test (SpacePossum)
    • minor #5171 Fix test (SpacePossum)
    • minor #5245 Fix CI for 3.0 line (keradus)
    • minor #5351 clean ups (SpacePossum)
    • minor #5364 DX: Do not display runtime twice on 3.0 line (keradus)
    • minor #5412 3.0 - cleanup (SpacePossum, keradus)
    • minor #5417 Further BC cleanup for 3.0 (keradus)
    • minor #5418 Drop src/Test namespace (keradus)
    • minor #5436 Drop mapping of strings to boolean option other than yes/no (keradus)
    • minor #5440 Change default ruleset to PSR-12 (keradus)
    • minor #5477 Drop diff-format (keradus)

    ... (truncated)

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 0
  • Upgrade to GitHub-native Dependabot

    Upgrade to GitHub-native Dependabot

    Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then.

    Dependabot has been fully integrated into GitHub, so you no longer have to install and manage a separate app. This pull request migrates your configuration from Dependabot.com to a config file, using the new syntax. When merged, we'll swap out dependabot-preview (me) for a new dependabot app, and you'll be all set!

    With this change, you'll now use the Dependabot page in GitHub, rather than the Dependabot dashboard, to monitor your version updates, and you'll configure Dependabot through the new config file rather than a UI.

    If you've got any questions or feedback for us, please let us know by creating an issue in the dependabot/dependabot-core repository.

    Learn more about migrating to GitHub-native Dependabot

    Please note that regular @dependabot commands do not work on this pull request.

    dependencies 
    opened by dependabot-preview[bot] 1
  • Malfunction when configuring the bundle under SF5.2

    Malfunction when configuring the bundle under SF5.2

    Hello, When I configure the bundle, I got this error: Required "app_id" key not supplied in config and could not find fallback environment variable "FACEBOOK_APP_ID" while the app_id is configured. Do you have a solution? @martin-georgiev

    opened by tuxxos33 1
  • Symfony 5.2 support issue

    Symfony 5.2 support issue

    Hello, i have a problem with the installation in symfony 5.2, here's the error.

    ` Problem 1 - symfony/symfony[v2.3.33, ..., 2.8.x-dev] require doctrine/common ~2.4 -> found doctrine/common[2.4.0-RC1, ..., 2.13.x-dev] but the package is fixed to 3.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - symfony/symfony[v2.3.0-BETA1, ..., v2.6.1] require doctrine/common ~2.2 -> found doctrine/common[2.2.0BETA1, ..., 2.13.x-dev] but the package is fixed to 3.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - symfony/symfony[v2.3.24, ..., v2.7.4] require doctrine/common ~2.3 -> found doctrine/common[2.3.0-BETA1, ..., 2.13.x-dev] but the package is fixed to 3.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - astina/social-links-bundle dev-master requires symfony/symfony ~2.3 -> satisfiable by symfony/symfony[v2.3.0-BETA1, ..., 2.8.x-dev]. - Root composer.json requires astina/social-links-bundle dev-master -> satisfiable by astina/social-links-bundle[dev-master].

    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

    Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

    Is there a fix? Thanks in advance

    opened by AmineMissaoui 2
Releases(v3.1.0)
Owner
Martin Georgiev
Developing for the web since 2003.
Martin Georgiev
Social OAuth Authentication for Laravel 5. drivers: facebook, github, google, linkedin, weibo, qq, wechat and douban

Social OAuth Authentication for Laravel 5. drivers: facebook, github, google, linkedin, weibo, qq, wechat and douban

安正超 330 Nov 14, 2022
Open source social sign on PHP Library. HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google.

Hybridauth 3.7.1 Hybridauth enables developers to easily build social applications and tools to engage websites visitors and customers on a social lev

hybridauth 3.3k Dec 23, 2022
A simple twitter SDK to interact with Twitter api (1.1)

Twitter SDK Installation composer require lyrixx/twitter-sdk Usage Create a twitter application then <?php require __DIR__.'/vendor/autoload.php';

Grégoire Pineau 37 Aug 28, 2020
Symfony bundle which provides OAuth 2.0 authorization/resource server capabilities

Symfony bundle which provides OAuth 2.0 authorization/resource server capabilities. The authorization and resource server actors are implemented using the thephpleague/oauth2-server library.

Trikoder 253 Dec 21, 2022
Login Menggunakan Google, Github, & Facebook

Login Oauth 2 Karena agak rumit untuk menjelaskan, ikuti tutorial berikut untuk mengatur CLIENTID dan CLIENTSECRET mu terlebih dahulu klik. Server Req

Fadhlurrahman 1 Nov 24, 2021
Tool termux untuk crack akun Facebook.

Facebook Cracker Elite Tool termux untuk crack akun Facebook. Cara Install Install cURL dan PHP untuk termux pkg up && pkg install curl && pkg ins

Ihsan Devs 3 Oct 20, 2022
Facebook strategy for Opauth

Opauth-Facebook Opauth strategy for Facebook authentication. Implemented based on https://developers.facebook.com/docs/authentication/ Getting started

Opauth – PHP Auth Framework 89 Dec 4, 2022
Creamos un inicio de sesión desde Facebook para nuestra aplicación web utilizando la librería de Socialite

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Carlos Villatoro 2 May 23, 2022
The first PHP Library to support OAuth for Twitter's REST API.

THIS IS AN MODIFIED VERSION OF ABRAHAMS TWITTER OAUTH CLASS The directories are structured and the class uses PHP5.3 namespaces. Api.php has a new

Ruud Kamphuis 51 Feb 11, 2021
The most popular PHP library for use with the Twitter OAuth REST API.

TwitterOAuth The most popular PHP library for Twitter's OAuth REST API. See documentation at https://twitteroauth.com. PHP versions listed as "active

Abraham Williams 4.2k Dec 23, 2022
A wrapper around Spatie’s Browsershot for managing social share images (OGP, Twitter etc.)

Very short description of the package This package allows you to create dynamic social sharing images in your Laravel apps. It uses Spatie’s Browsersh

Richard Le Poidevin 4 Dec 25, 2021
Twitter OAuth API for PHP 5.3+

README The Wid'op OAuth library is a modern PHP 5.3+ API allowing you to easily obtain a Twitter access token. For now, it supports OAuth Web & Applic

Wid'op 8 Dec 11, 2020
This plugin integrates OAuth2 functionality into Guzzle Bundle

Guzzle Bundle OAuth2 Plugin This plugin integrates OAuth2 functionality into Guzzle Bundle, a bundle for building RESTful web service clients. Prerequ

Vlad Gregurco 12 Oct 30, 2022
OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.

HWIOAuthBundle The HWIOAuthBundle adds support for authenticating users via OAuth1.0a or OAuth2 in Symfony. Note: this bundle adds easy way to impleme

Hardware Info 2.2k Dec 30, 2022
example of LexikJWTAuthenticationBundle with Symfony 4.4

Install Dependency composer install Generate the SSL keys: php bin/console lexik:jwt:generate-keypair Create database php bin/console doctrine:datab

Yunus Emre Bulut 1 Nov 10, 2021
Implements a Refresh Token system over Json Web Tokens in Symfony

JWTRefreshTokenBundle The purpose of this bundle is manage refresh tokens with JWT (Json Web Tokens) in an easy way. This bundles uses LexikJWTAuthent

Marcos Gómez Vilches 568 Dec 28, 2022
JWT Authenticator for symfony

HalloVerdenJwtAuthenticatorBundle This bundle provides a JWT authenticator for Symfony applications. It's using PHP JWT Framework for parsing and vali

Hallo Verden 0 Jul 8, 2022
PHP library to verify and validate Apple IdentityToken and authenticate a user with Apple ID.

Sign-in with Apple SDK Installation Recommended and easiest way to installing library is through Composer. composer require azimolabs/apple-sign-in-ph

Azimo Labs 79 Nov 8, 2022
PHP Client and Router Library for Autobahn and WAMP (Web Application Messaging Protocol) for Real-Time Application Messaging

Thruway is an open source client and router implementation of WAMP (Web Application Messaging Protocol), for PHP. Thruway uses an event-driven, non-blocking I/O model (reactphp), perfect for modern real-time applications.

Voryx 662 Jan 3, 2023