# Custom Script with Kirby Core

**URL:** <https://forum.getkirby.com/t/custom-script-with-kirby-core/371>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 10, 2015, 10:08am UTC](https://forum.getkirby.com/t/custom-script-with-kirby-core/371 "2015-03-10T10:08:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carstengrimm](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/carstengrimm/32/188_2.png) [@carstengrimm](https://forum.getkirby.com/u/carstengrimm)\
**Post date:** [March 10, 2015, 10:08am UTC](https://forum.getkirby.com/t/custom-script-with-kirby-core/371/1 "2015-03-10T10:08:27Z")

</div>

Hey,

I have been wondering. If i were to implement kirby functions into another script, how would i embed the core?

Mainly I am interested to call the

> **[$users-\>create()](https://getkirby.com/docs/reference/objects/cms/users/create)**

command from another php file which is not part of a template or does not require to accessed by visitors.

I have tried to require kirby/bootstrap.php with no success.

Best regards,

Carsten

---

<div class="post-metadata">

**Author:** ![fvsch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fvsch/32/15908_2.png) [@fvsch](https://forum.getkirby.com/u/fvsch)\
**Post date:** [March 10, 2015, 11:15am UTC](https://forum.getkirby.com/t/custom-script-with-kirby-core/371/2 "2015-03-10T11:15:24Z")

</div>

What did your try precisely?

```php
<?php
require('/path/to/kirby/bootstrap.php');
$kirby = kirby();

```

doesn’t give you a working `$kirby` object to work with?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:20pm UTC](https://forum.getkirby.com/t/custom-script-with-kirby-core/371/3 "2025-02-06T17:20:47Z")

</div>

Archived on February 6, 2025, 5:20pm UTC


