Download the PHP package wangyongdong/laravelcas without Composer

On this page you can find all versions of the php package wangyongdong/laravelcas. 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 laravelcas

laravel-cas

Laravel Cas Client 服务是基于 phpCas 基础上进行封装

支持

版本说明

安装

编辑 Composer.json

执行安装

配置 provideraliases

NOTE : 该软件包支持Laravel 5.5的自动发现功能,因此,如果您使用的是Laravel 5.5,则可以跳过本节。

1. 配置 provider

'providers' => [ Wangyongdong\LaravelCas\CasServiceProvider::class ],

2. 配置 aliases

'aliases' => [ ... 'Laravelcas' => Wangyongdong\LaravelCas\Facades\Cas::class, ],

发布配置文件

php artisan vendor:publish --provider="Wangyongdong\LaravelCas\CasServiceProvider"

配置文件

发布完成后,将自动生成一个名为 config/cas.php 的配置文件。

一般来说,仅需配置一下几项即可

更多配置项在文件 config/cas.php 中查看

使用中间件

如果要将CAS服务用作身份验证的中间件,则可以在 app/Http/Kernel.php中的 $routeMiddleware 对其进行配置。

Laravel 必须配置项

  1. 路由修改支持post,示例:Route::any('/', 'HomeController@index')->name('home.index');
  2. http 419问题,参考链接

    1. app\Http\Kernel.php 中,注释 VerifyCsrfToken 中间件
    2. 添加白名单, app\Http\Middleware\VerifyCsrfToken.php 文件中
  3. 具体目录根据请求地址来调整

支持方法

Updates

问题

  1. Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

    • 报错版本:laravel5.5 php7.0.9
    • 问题原因:包 symfony/translation 使用 php7.1 新增特性 可为空(Nullable)类型 导致报错
    • 解决办法:升级 laravel 版本,或升级 php 版本
  2. Declaration of Illuminate\Container\Container::get($id) must be compatible with Psr\Container\ContainerInterface::get(string $id) in

    • 报错版本:
    • laravel5.6 php7.1.9
    • laravel5.7 php7.1.9
    • laravel5.8 php7.1.9
    • 问题原因:因 laravel5.6+ 版本中引用的扩展包里,使用了 php7.2 新特性 [参数类型声明](),导致报错
    • 解决办法:
      1. 升级到 php7.2+
      1. 修改Illuminate\Container\Container 592行,161行。改为 public function get(string $id)public function has(string $id)
  3. laravel 不能同步退出问题

Links

PHPCAS


All versions of laravelcas with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 5.*|6.*|7.*|8.*
wangyongdong/phpcas Version dev-master
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 wangyongdong/laravelcas contains the following files

Loading the files please wait ....