Download the PHP package bw/stand-with-ukraine-bundle without Composer

On this page you can find all versions of the php package bw/stand-with-ukraine-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package stand-with-ukraine-bundle

StandWithUkraineBundle

Stand With Ukraine

CI

На русском? Смотри README.ru.md

This bundle provides a built-in StandWithUkraine banner for your Symfony application and has some features to block content for Russian-speaking users. Why? Great question! There is a war in Ukraine right now. You can read more about it here.

The initial idea of this bundle is to push Russian-speaking people to think! Almost all Russian media are not independent anymore and spread fake news to their users about what is happening in the world and even in their own country. Everybody has a choice. You can choose different sources in different languages to read the news from many other independent and trusted media around the world, don't limit yourself with Russian language and Russian media only.

Features

Some features included in this bundle:

Installation

Install with Composer:

Then, enable the bundle if you don't use Symfony Flex:

And then activate/deactivate event subscribers in its configuration.

Configuration

Configuration is optional, all options have defaults. But if you want to change it - create a config file config/services/stand_with_ukraine.yaml and tweak it. Below you can find the full configuration example with the default values:

Or you can see it in your terminal, just run:

Testing

For testing purposes, you can easily simulate bad requests to test things manually on your website in an easy way. To overwrite the actual country code with ru, use swu_overwrite_country_code_ru query parameter, i.e:

https://127.0.0.1:8000/?swu_overwrite_country_code_ru=yes

Also, you can overwrite preferred language with ru as well, use swu_overwrite_preferred_lang_ru query parameter, i.e:

https://127.0.0.1:8000/?swu_overwrite_preferred_lang_ru=yes

The system will thinks that you're sending requests from a Russian IP address or with Russian preferred language correspondingly and behave accordingly your configuration.

That's it!

Thanks for using this bundle! Feel free to create an issue or send a PR if you have any ideas how to improve it. And if you like it - please, share!


All versions of stand-with-ukraine-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/config Version ^5.4|^6.0
symfony/dependency-injection Version ^5.4|^6.0
symfony/event-dispatcher Version ^5.4|^6.0
symfony/http-foundation Version ^5.4|^6.0
symfony/http-kernel Version ^5.4|^6.0
symfony/translation Version ^5.4|^6.0
symfony/twig-bundle Version ^5.4|^6.0
twig/twig Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bw/stand-with-ukraine-bundle contains the following files

Loading the files please wait ....